bhobjj
03-05-2007, 03:11 PM
dpkg-repack can be used to recreate a debian package from an installed program:
http://www.debian-administration.org/articles/499
Here (http://zgp.org/pipermail/linux-elitists/2007-March/011847.html) is a fine hack to use dpkg-repack for undoing an upgrade.
Michael Dominok ml.linux-elitists at dominok.net
Thu Mar 1 17:31:24 UTC 2007
* Previous message: [linux-elitists] Show Us The Code
* Next message: [linux-elitists] Show Us The Code
* Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Am Donnerstag, den 01.03.2007, 01:54 -0500 schrieb Greg Folkert:
> Huh? I am sorry, Debian has this already.
>
> dpkg-repack is available.
A handy little tool. My usual upgrade-procedure is:
mkdir /root/lib/upgrades/`date +%Y-%m-%d` ; cd /root/lib/upgrades/`date
+%Y-%m-%d`
dpkg-repack `apt-get -s upgrade | grep "^Inst" | awk '{ print $2 }'`
or
dpkg-repack `apt-get -s dist-upgrade | grep "^Inst" | awk '{ print$2 }'`
respectively.
So if anything goes wrong i only have to
cd /root/lib/upgrades/`date +%Y-%m-%d`
and
dpkg -i *
Cheers
Michael
http://www.debian-administration.org/articles/499
Here (http://zgp.org/pipermail/linux-elitists/2007-March/011847.html) is a fine hack to use dpkg-repack for undoing an upgrade.
Michael Dominok ml.linux-elitists at dominok.net
Thu Mar 1 17:31:24 UTC 2007
* Previous message: [linux-elitists] Show Us The Code
* Next message: [linux-elitists] Show Us The Code
* Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Am Donnerstag, den 01.03.2007, 01:54 -0500 schrieb Greg Folkert:
> Huh? I am sorry, Debian has this already.
>
> dpkg-repack is available.
A handy little tool. My usual upgrade-procedure is:
mkdir /root/lib/upgrades/`date +%Y-%m-%d` ; cd /root/lib/upgrades/`date
+%Y-%m-%d`
dpkg-repack `apt-get -s upgrade | grep "^Inst" | awk '{ print $2 }'`
or
dpkg-repack `apt-get -s dist-upgrade | grep "^Inst" | awk '{ print$2 }'`
respectively.
So if anything goes wrong i only have to
cd /root/lib/upgrades/`date +%Y-%m-%d`
and
dpkg -i *
Cheers
Michael