PDA

View Full Version : [ubuntu] apt-get upgrade installed packages only?



sutherland1
April 12th, 2010, 07:16 PM
Hi All,
I have heavily customised version of Ubuntu 9.04 which I wish to upgrade to 9.10.

However I wish to only update the installed packages, and not add any more.

My plan is to change sources.list from

deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted multiversedeb-src http://archive.ubuntu.com/ubuntu/ jaunty main

to...

deb http://archive.ubuntu.com/ubuntu/ karmic main restricted multiversedeb-src http://archive.ubuntu.com/ubuntu/ karmic main

and run apt-get update

Is this the correct procedure?Thanks

snowpine
April 12th, 2010, 07:18 PM
No, that is not the recommended upgrade procedure.

http://www.ubuntu.com/getubuntu/upgrading

Ubuntu will only upgrade the packages that are installed. In rare cases, a few extra new packages might be brought in, as dependencies can change from release to release.

I always recommend testing a Live CD of the new release first, to avoid any unpleasant surprises (like your graphic card is no longer supported, oops!)

garvinrick4
April 12th, 2010, 07:32 PM
This will upgrade your sources list to karmic and dist upgrade your
OS. Have a nice day.


sudo sed -i 's/jaunty/karmic/g' /etc/apt/sources.list && sudo aptitude update && sudo aptitude dist-upgrade

sutherland1
April 12th, 2010, 07:34 PM
Thanks for the reply - just so I'm clear, only "apt-get dist-upgrade" will be needed?

dannyboy79
April 12th, 2010, 07:35 PM
This will upgrade your sources list to karmic and dist upgrade your
OS. Have a nice day.


sudo sed -i 's/jaunty/karmic/g' /etc/apt/sources.list && sudo aptitude update && sudo aptitude dist-upgrade

and that is NOT the recommended way. but I suppose users will do what they do.

recommended way is

sudo apt-get update && update-manager -d

sutherland1
April 13th, 2010, 12:25 AM
This command worked perfectly...
sudo sed -i 's/jaunty/karmic/g' /etc/apt/sources.list && sudo aptitude update && sudo aptitude dist-upgrade