Koozali.org: home of the SME Server
Obsolete Releases => SME 9.x Contribs => Topic started by: barryc 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.
-
Barry
https://forums.contribs.org/index.php/topic,52923.msg273280.html#msg273280
-
Thanks very much for your help Janet - much appreciated.
-
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?
-
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 ?
-
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
-
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.
-
Thanks for your help on this.
Any pointers on how I change the URL for YUM?
Best wishes,
Barry.
-
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 :-) )
-
Brilliant - I now have a list of added RPMS. Big relief, I can get on and upgrade.
Thanks to all for your help.
Barry.
-
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)
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)
-
Many thanks.
-
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 :-)