-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >>>>> "linuxlingam" == linuxlingam <[EMAIL PROTECTED]> writes: linuxlingam> Dear jasbir,
linuxlingam> thanks for your respone and taking your cue promptly subscribed to the linuxlingam> ubuntu-in mailing list. linuxlingam> i have not opted for dist-upgrade in feisty, just regular maintenance linuxlingam> updates. The ones post oct2007 demand more ram, so until then the linuxlingam> system is doing a swap dance. linuxlingam> I therefore dont want updates beyond oct2007. linuxlingam> How do i do that? I hope your /var/log/dpkg.log from old box is still there. Following 'awk' script will output what all packages with their versions were installed before a given date when your system broke. Set value of BROKEDATE with the appropriate date: - ----8<----8<---- # update.awk BEGIN { # date when stuff broke BROKEDATE="2007-11-20" } /status installed/ { if($1 < BROKEDATE) { # $1 - data, $5 - pkg name, $6 - pkg version # print $1" "$5" "$6 PKGS[$5] = $6; } } /not-installed/ { delete PKGS[$5]; } END { for(i in PKGS) { print i" "PKGS[i]; } } - ---->8---->8---- Following is the usage: $ awk -f update.awk /var/log/dpkg.log kgpg 4:3.5.8-0ubuntu1 libgail18 1.20.0-0ubuntu1 libxt6 1:1.0.5-3 kscd 4:3.5.8-0ubuntu1 ... Now once you've versions, you can 'wget' the respective packages from repositories and install them using 'dpkg -i', hmm... ? Post-installation, you can prevent any updates to desired packages using apt pinning. HTH - -- Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/ ·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHdptcHy+EEHYuXnQRAqaUAKC+6ouRHjOok6PP/B44AUGrcNeSSgCbBpVo civDNZmjfE1Et7vZwsgzxTU= =fKBm -----END PGP SIGNATURE----- _______________________________________________ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22/23, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/