Monday, November 10, 2008

dpkg restore.

Just seen this.

add a sources.list update will be really useful.


# "Have a second computer that you want to migrate your Debian-based system to, but don't want to go through the trouble of finding every package you had installed? To save your package, list:

* dpkg --get-selections > selections.txt

# To restore:

* dpkg --set-selections < selections.txt
* dselect update
* apt-get dselect-upgrade," he said.

Friday, November 7, 2008

Upgrading to Intrepid with update-manager and apt-cacher

Intrepid
update-manager has has a bug which doesn't recognize the apt.conf


Here is a work around

sudo -s
cp /etc/apt/sources.list /etc/apt/sources.list.backup
insert=`sed -e "s/^A.* \"//; s/\";$// ; s,/$,," /etc/apt/apt.conf`
sed -i -e "s,http:/,$insert," /etc/apt/sources.list
cat /etc/apt/sources.list
mv /etc/apt/apt.conf /etc/apt/apt.conf.proxy
update-manager -d -c
cp /etc/apt/sources.list.backup /etc/apt/sources.list
mv /etc/apt/apt.conf.proxy /etc/apt/apt.conf


this script copies the proxy info from the /etc/apt/apt.conf file
then hard codes it into the /etc/apt/sources.list
does the deed the reverts back to the previous state