Difference between revisions of "11Image - Install Log"
Jump to navigation
Jump to search
Amweeden06 (talk | contribs) (Created page with "- '''Push the current production image to the image server as ACL_OLD (thereby making a backup of it).'''<br /> acl22# /usr/sbin/si_prepareclient --server image.cs.earlham.edu -...") |
Amweeden06 (talk | contribs) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
- '''Determine the version numbers of all installed packages.'''<br /> | - '''Determine the version numbers of all installed packages.'''<br /> | ||
− | acl22# for i in `dpkg --get-selections | grep -v deinstall | awk '{print $1}'`; do dpkg-query -W $i >> | + | acl22# for i in `dpkg --get-selections | grep -v deinstall | awk '{print $1}'`; do dpkg-query -W $i >> acl_old_package_versions_20111907; done. |
- '''Download the Ubuntu 9.10 alternate disk image.'''<br /> | - '''Download the Ubuntu 9.10 alternate disk image.'''<br /> | ||
quark# wget http://old-releases.ubuntu.com/releases/9.10/ubuntu-9.10-alternate-i386.iso | quark# wget http://old-releases.ubuntu.com/releases/9.10/ubuntu-9.10-alternate-i386.iso | ||
+ | |||
+ | - '''Mount the image in the CD drive.'''<br /> | ||
+ | acl22# mount -o loop ubuntu-9.10-alternate-i386.iso /media/cdrom0 | ||
+ | |||
+ | - '''Start the upgrade.'''<br /> | ||
+ | acl22# gksu "sh /media/cdrom0/cdromupgrade" | ||
+ | |||
+ | - '''Upgrade to 10.04 LTS through the Update Manager.'''<br /> | ||
+ | |||
+ | - '''Determine the new version numbers of all installed packages.'''<br /> | ||
+ | acl22# for i in `dpkg --get-selections | grep -v deinstall | awk '{print $1}'`; do dpkg-query -W $i >> acl_new_package_versions_20112707; done. | ||
+ | |||
+ | - '''Push the image to the image server as ACL_DEVEL.'''<br /> | ||
+ | acl22# /usr/sbin/si_prepareclient --server image.cs.earlham.edu --yes | ||
+ | |||
+ | forty-one# si_getimage --golden-client acl22.cs.earlham.edu --image ACL_DEVEL --quiet --update-script YES --autodetect-disks --ip-assignment DHCP --post-install reboot | ||
+ | |||
+ | - '''Clean up some weirdness.'''<br /> | ||
+ | acl22# dpkg --purge rarian-compat | ||
+ | acl22# apt-get -f install | ||
+ | |||
+ | - '''Take care of the ones we missed.'''<br /> | ||
+ | acl0# dpkg -l | awk '{print $2}' > old_packages | ||
+ | acl22# dpkg -l | awk '{print $2}' > new_packages | ||
+ | acl22# for i in `diff old_packages new_packages | grep \< | awk '{print $2}'`; do apt-get install $i; done |
Latest revision as of 10:45, 28 July 2011
- Push the current production image to the image server as ACL_OLD (thereby making a backup of it).
acl22# /usr/sbin/si_prepareclient --server image.cs.earlham.edu --yes
forty-one# si_getimage --golden-client acl22.cs.earlham.edu --image ACL_OLD --quiet --update-script YES --autodetect-disks --ip-assignment DHCP --post-install reboot
- Determine the version numbers of all installed packages.
acl22# for i in `dpkg --get-selections | grep -v deinstall | awk '{print $1}'`; do dpkg-query -W $i >> acl_old_package_versions_20111907; done.
- Download the Ubuntu 9.10 alternate disk image.
quark# wget http://old-releases.ubuntu.com/releases/9.10/ubuntu-9.10-alternate-i386.iso
- Mount the image in the CD drive.
acl22# mount -o loop ubuntu-9.10-alternate-i386.iso /media/cdrom0
- Start the upgrade.
acl22# gksu "sh /media/cdrom0/cdromupgrade"
- Upgrade to 10.04 LTS through the Update Manager.
- Determine the new version numbers of all installed packages.
acl22# for i in `dpkg --get-selections | grep -v deinstall | awk '{print $1}'`; do dpkg-query -W $i >> acl_new_package_versions_20112707; done.
- Push the image to the image server as ACL_DEVEL.
acl22# /usr/sbin/si_prepareclient --server image.cs.earlham.edu --yes
forty-one# si_getimage --golden-client acl22.cs.earlham.edu --image ACL_DEVEL --quiet --update-script YES --autodetect-disks --ip-assignment DHCP --post-install reboot
- Clean up some weirdness.
acl22# dpkg --purge rarian-compat acl22# apt-get -f install
- Take care of the ones we missed.
acl0# dpkg -l | awk '{print $2}' > old_packages acl22# dpkg -l | awk '{print $2}' > new_packages acl22# for i in `diff old_packages new_packages | grep \< | awk '{print $2}'`; do apt-get install $i; done