Koozali.org: home of the SME Server

Identifying non-core contribs

Offline barryc

  • 14
  • +0/-0
Identifying non-core contribs
« on: April 19, 2017, 07:34:51 PM »
I am upgrading my server (8.x to 9.1) and I know that before doing this all added contribs have to be removed to ensure a smooth update.

I vaguely remember that there was a command to list all added contribs, but I cannot recall what it was, and despite a lot of searching the wiki, I cannot find it.

Can anyone remind me, or if my memory is defective, offer any suggestions for getting a list of contribs to remove pre-upgrade?

Many thanks, Barry.

Offline janet

  • ****
  • 4,812
  • +0/-0
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline barryc

  • 14
  • +0/-0
Re: Identifying non-core contribs
« Reply #2 on: April 19, 2017, 08:05:28 PM »
Thanks very much for your help Janet - much appreciated.

Offline barryc

  • 14
  • +0/-0
Re: Identifying non-core contribs
« Reply #3 on: April 19, 2017, 08:12:07 PM »
I spoke too soon - it seems that this may rely on the presence of a repository that no longer exists?

[root@mmserver ~]# /sbin/e-smith/audittools/newrpms
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile


Cannot find a valid baseurl for repo: base
YumRepo Error: All mirror URLs are not using ftp, http(s) or file.
 Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txt


Does this mean I am stuck?

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Identifying non-core contribs
« Reply #4 on: April 20, 2017, 12:55:43 AM »
barryc

You will have to reconfigure the base (& probably other repos) to point at archival locations. The powers that be moved them as soon as sme 8.x went EOL.
IMO probably a bit quick to do that but sort of understandable.

This same issue caused a lot of grief & difficulties for sme 7.x users who upgraded after EOL, even a couple or few years later. It would probably have been best to leave the repos alone for 2 or 3 years after EOL to avoid these difficulties which are time consuming for those involved & those trying to help.
It is not a perfect world so there are many reasons why servers do not get upgraded at the correct time (before going EOL).

Maybe someone who made the changes could publish revised archival repo configuration settings.
You can search the folder locations for the current repos & go up the folder list to find where the archives are located & then edit your repo configuration to suit. Not hard to do but awkward if you are unsure of repo stuff.

Terry are you there ?
« Last Edit: April 20, 2017, 12:57:26 AM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Identifying non-core contribs
« Reply #5 on: April 20, 2017, 02:59:54 AM »
base is a centos repo, they have moved the 5 tree to vault

Check on centos site for details.

Added:
https://www.centos.org/forums/viewtopic.php?t=62106
« Last Edit: April 20, 2017, 06:10:47 AM by TerryF »
--
qui scribit bis legit

Offline Jean-Philippe Pialasse

  • *
  • 2,747
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Identifying non-core contribs
« Reply #6 on: April 20, 2017, 04:25:38 PM »
We paid attention to leave mirrors accessible for sme8, mirrolist have been updated and point to the obsolete path. However, centos do not care that much, so indeed you have to manually remove the mirrolist for base and updates and set the pointing url to vault.centos.org in the yum_repositories db.

Offline barryc

  • 14
  • +0/-0
Re: Identifying non-core contribs
« Reply #7 on: April 20, 2017, 04:28:07 PM »
Thanks for your help on this.

Any pointers on how I change the URL for YUM?

Best wishes,

Barry.

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Identifying non-core contribs
« Reply #8 on: April 20, 2017, 05:11:08 PM »
This will show current yum repo settings:
# db yum_repositories show

This will reset for centos updates and base, you should be able to work out any others needed..

db yum_repositories set base repository \
Name 'CentOS - os' \
BaseURL 'http://vault.centos.org/5.11/os/$basearch/' \
GPGCcheck yes \
GPGKey 'http://vault.centos.org/RPM-GPG-KEY-CentOS-5' \
Exclude=initscripts,libgsf \
Visible yes \
status enabled

db yum_repositories set updates repository \
Name 'CentOS - updates' \
BaseURL 'http://vault.centos.org/5.11/updates/$basearch/' \
GPGCcheck yes \
GPGKey 'http://vault.centos.org/RPM-GPG-KEY-CentOS-5' \
Exclude=initscripts,libgsf \
Visible yes \
status enabled

signal-event yum-modify
yum clean all


EDIT: added the exclusions to avoid conflict with SME packages. JP Pialasse (Don't make it to easy JP LOL :-) )
« Last Edit: April 21, 2017, 01:21:42 AM by TerryF »
--
qui scribit bis legit

Offline barryc

  • 14
  • +0/-0
Re: Identifying non-core contribs
« Reply #9 on: April 20, 2017, 05:18:13 PM »
Brilliant - I now have a list of added RPMS.  Big relief, I can get on and upgrade.

Thanks to all for your help.

Barry.

Offline Jean-Philippe Pialasse

  • *
  • 2,747
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Identifying non-core contribs
« Reply #10 on: April 20, 2017, 10:44:06 PM »
Terry, I took the liberty to edit your post to add exclusions . I feel some might use it to put the last updates, and I want to avoid the conflict with packages ;).

Barryc,
you might want to reapply the command, unless you are certain to not try to update your SME8 before moving to SME9.


alternatively you could have done ( before deleting the exclusions)
 
 
Code: [Select]
db yum_repositories setprop base BaseURL  'http://vault.centos.org/5.11/os/$basearch/'
db yum_repositories setprop updates BaseURL  'http://vault.centos.org/5.11/updates/$basearch/'
db yum_repositories delprop base MirrorList
db yum_repositories delprop updates MirrorList
signal-event yum-modify
yum clean all


lastly:
- We should document this on the wiki on all the pages dealing with SME8-SME9 migration ( Terry, would you be kind to add this ?)
- We should implement something on SME9 that move to the last vault release available when centos goes EOL (I will open a NFR bug)
« Last Edit: April 20, 2017, 10:48:13 PM by Jean-Philippe Pialasse »

Offline barryc

  • 14
  • +0/-0
Re: Identifying non-core contribs
« Reply #11 on: April 21, 2017, 06:58:40 PM »
Many thanks.

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Identifying non-core contribs
« Reply #12 on: April 21, 2017, 08:35:36 PM »
lastly:
- We should document this on the wiki on all the pages dealing with SME8-SME9 migration ( Terry, would you be kind to add this ?)
- We should implement something on SME9 that move to the last vault release available when centos goes EOL (I will open a NFR bug)

It shall so happen, just give me a little time  :-)
--
qui scribit bis legit