This post describes how I upgraded my Ubuntu (Hardy Heron) 8.04 server installation to (Intrepid Ibex) 8.10 from the command line.
First you’ll need to make sure you are running the latest packages
# sudo aptitude update # sudo aptitude safe-upgrade
Then you will need to install the Ubuntu upgrade package
# sudo aptitude install update-manager-core
You can start the upgrade when the package is installed
# sudo do-release-upgrade
Then you just have to follow the on-screen instructions and answer the questions as they pop up. One thing to note is the fact that it is not suggested to perform the upgrade via a remote ssh connection. I have done earlier upgrades multiple times before without any problems, but I might just have been lucky.
Tags: 8.04, 8.10, Hardy Heron, Intrepid Ibex, Ubuntu, upgrade
Posted by Hans-Henry Jakobsen
Today, my Zimbra installation was upgraded from version 5.0.1 to 5.0.2 on my Debian Etch 4.0 server. It looks like everything is working properly after the upgrade.
Short description of the upgrade prosess
# su - zimbra # zmcontrol stop # lsof | grep opt | grep zimbra
You should kill all running prosesses lsof gives you before continuing the upgrade.
# tar xfz zcs-5.0.2_GA_1975.DEBIAN4.0.20080130234700.tgz
# cd zcs-5.0.2_GA_1975.DEBIAN4.0.20080130234700 # ./install
Posted by Hans-Henry Jakobsen
This is the steps I took to upgrade a running Fedora Core 7 installation to Core 8 using yum from the command line. Please note that live upgrades are not recommended by the Fedora Project.
Make a list of the systems current packages for later reference:
rpm -qa --qf '%{NAME}\n' | sort | uniq > ~/new-pkgnames.txt
Make a backup of any system configuration data (as root):
tar czf ~/etc-`date +%F`.tar.gz /etc
yum clean all
Make sure the new repo files isn’t placed as .rpmnew files, perhaps by
mv /etc/yum.repos.d/fedora-updates.repo.rpmnew /etc/yum.repos.d/fedora-updates.repo mv /etc/yum.repos.d/fedora.repo.rpmnew /etc/yum.repos.d/fedora.repo
Also make sure that all the 3rd party repos you normally use point to the repository for the new Fedora release.
Next the upgrade.
Make sure you are in runlevel 3
telinit 3
Run the following command to update the yum repo on your box:
rpm -Uhv rpm -Uvh rpm -Uvh http://mirror.anl.gov/pub/fedora/linux/releases/8/Everything/i386/os/Packages/fedora-release-8-3.noarch.rpm http://mirror.anl.gov/pub/fedora/linux/releases/8/Everything/i386/os/Packages/fedora-release-notes-8.0.0-3.noarch.rpm
yum might complain about conflicts or requirements. That is probably because you have used non-standard repositories or installed non-standard packages manually. Try to guess which packages cause the problem (or at least is a part of the dependency chain) – uninstall them and try again. Remember to install the packages again if they are essential.
Tip: Find and review “lost” packages.
You can find orphaned packages (ie packages not in the repositories anymore) after the upgrade with the tool package-cleanup from the yum-utils package
yum install yum-utils; package-cleanup --orphans
It’s often helpful to run this command before the update, too. For packages with a failing “%postun” script the old package will remain partly installed. Remove it with
rpm -e package-name-and-version
If you forget to remove the avahi package it will refuse to be removed from the system with a error message “error: %postun(avahi-0.6.17-1.fc7.i386) scriptlet failed, exit status 1″. I haven’t looked up this error message any further.
I had to clean yum to make it aware of the recent package change, this might not be necessary.
yum clean all yum upgrade
Ensure that all (new) essential packages from the new version is installed with
yum groupupdate Base
You might want to update other groups too, see
yum grouplist
The system had to upgrade 937 packages before fedora Core 7 is a fedora Core 8 installation.
After the upgrade has finished a reboot is required and it was time to check for orphaned packages
package-cleanup --orphans
The command for removing these packages is described earlier.
Source: http://docs.fedoraproject.org/install-guide/f8/en_US/sn-upgrade-tree.html, http://www.ioncannon.net/system-administration/133/upgrading-from-fedora-7-to-fedora-8-with-yum/ and http://fedoraproject.org/wiki/YumUpgradeFaq
Tags: Core 7, Core 8, Fedora, rpm, upgrade, yum
Posted by Hans-Henry Jakobsen
If you have shell access to your webserver this script can be used to upgrade your WordPress installation to the latest version quickly. Always remeber to backup your database and installation files before running it!
Do change the bold text to reflect your WordPress Internet address before you run the script.
#!/bin/bash
CURDIR=$(pwd)
SITE="http://yoursite.com/wordpress"
echo Updating WordPress located in $CURDIR
echo 1. Downloading latest WordPress install file.
wget -q http://wordpress.org/latest.tar.gz
echo 2. Unpacking downloaded file.
tar zxf latest.tar.gz
cd wordpress/
echo 3. Replacing old files with the unpacked ones.
tar cf - . | (cd $CURDIR; tar xf -)
echo 4. Update the WordPress installation.
wget -q -O - ${SITE}/wp-admin/upgrade.php?step=1> /dev/null
echo 5. Removing the WordPress file downloaded recently.
rm -f ../latest.tar.gz
echo 6. WordPress is now upgraded.
Tags: bash, shell, upgrade, Wordpress
Posted by Hans-Henry Jakobsen