PDA

View Full Version : How to upgrade without trashing my sources.list?


Archmage
October 17th, 2007, 04:53 AM
Explanation:

I have here a few PCs, one is already convertet to Gusty, the remaning ones are still runing feisty, but I'm planing to upgrade them, when Gusty comes out.

All are using apt-proxy and therefore I only need to download each packet once.

Unfortunatly if I use the Update-Manger it will trash my old sources.list and will create a new one that will use the internet instead of my apt-proxy. Resulting in download over 500 MB for each machine instead of simply using my local proxy with the already downloaded packets.

Therefore I'm planing to edit the sources.list manuel (just exchange every feisty to gusty) and then run

sudo aptitude update ; sudo aptitude upgrade ; sudo aptitude dist-upgrade ; sudo aptitude safe-upgrade ; sudo aptitude dist-upgrade ; shutdown -r now ; exit

Will this work or should I add some commands to it?

Did someone already found the offical way to upgrade or will this only be written when Gusty is ready?

AlexenderReez
October 17th, 2007, 10:30 AM
aptoncd (http://aptoncd.sourceforge.net/)is the best choice either way.....

Archmage
October 17th, 2007, 10:35 AM
Sorry, I didn't get it. I want to upgrade all my PCs over the network instead of over the internet and you suggest that I should first upgrade over the internet and than run around with CDs to manual upgrade the PC?

:lolflag:

I'm missing something, aren't I?

theanswriz42
October 17th, 2007, 10:39 AM
I'd just cp your sources list to a different directory, then follow the net upgrade instructions.

MalfunctioningMartian
October 17th, 2007, 10:43 AM
What I'm plannig to do is upgrade one and copy and paste it's cache. Would that work?

AlexenderReez
October 17th, 2007, 11:36 AM
Sorry, I didn't get it. I want to upgrade all my PCs over the network instead of over the internet and you suggest that I should first upgrade over the internet and than run around with CDs to manual upgrade the PC?

:lolflag:

I'm missing something, aren't I?

What I'm plannig to do is upgrade one and copy and paste it's cache. Would that work?

well....default folder for cache is /var/cache/apt/archives ...if you copy all those software in that place to new computer(same directory = /var/cache/apt/archives) ...you don't need to download it anymore after reload.....don't forget to do

sudo apt-get autoclean

before any future step...

Archmage
October 18th, 2007, 04:22 AM
Sorry, but aren't all the suggestions against the idea of apt-proxy? Copying the source.list and than do a network-update will result in downloading 500 MB over the internet. That means 4 PC = 2 GB additional traffic over the internet.

And copying all the packages that I have from one PC to the others will copying 5 GB of data to each PC - just to upgrade 500 MB. That means 20 GB of additional traffic in my network - beside the fact that this will take some time.

I just want a smothy upgrade process, but these are all a little too much.

AlexenderReez
October 18th, 2007, 05:50 AM
copy doesn't mean you need to move those software from pc to external harddisk....you can use LAN network,and it will be similar to apt-proxy....i frequently use LaN network to share my videos,musics with my friends....