LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-19-2009, 05:24 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
Distribution Upgrade using aptitude


hi

What is the best aptitude command to upgrade Debian Distribution?
There are many upgrade commands and this is a bit confusing:
Code:
# aptitude upgrade
# aptitude safe-upgrade
# aptitude dist-upgrade
# aptitude full-upgrade
 
Old 07-19-2009, 05:26 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Just don't do it. There are plenty of threads on this subject here on LQ. A fresh install is always a better choice.
 
Old 07-19-2009, 05:28 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
aptitude full-upgrade is the one I went with to upgrade Lenny to Squeeze. However, KDE4 has not been without it's issues. If possible, do a fresh install.
 
Old 07-19-2009, 06:18 PM   #4
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Quote:
Originally Posted by cccc View Post
hi

What is the best aptitude command to upgrade Debian Distribution?
There are many upgrade commands and this is a bit confusing:
Code:
# aptitude upgrade
# aptitude safe-upgrade
# aptitude dist-upgrade
# aptitude full-upgrade
For a normal update use:

Code:
aptitude update
aptitude safe-upgrade
Or to upgrade from one release to another you can use:

Code:
aptitude update
aptitude full-upgrade
If you are intending to go from one release to another it's worth reading the release notes or documentation.Sometimes it's advised to upgrade apt,aptitude and dpkg before running the aptitude full-upgrade command.

The commands aptitude upgrade and aptitude dist-upgrade were deprecacated for the ones used above.

Last edited by the trooper; 07-19-2009 at 06:26 PM.
 
Old 07-19-2009, 06:58 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Quote:
Originally Posted by stress_junkie View Post
Just don't do it. There are plenty of threads on this subject here on LQ. A fresh install is always a better choice.
wtf? no. If you've ****ed things up, sure, but not normally.

"safe-upgrade" is the new term for "upgrade". It upgrades packages without removing any or adding any new ones.
"full-upgrade" is the new term for "dist-upgrade". It is allowed to add or remove packages while upgrading others.
 
Old 07-19-2009, 07:23 PM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Quote:
Originally Posted by stress_junkie
Just don't do it. There are plenty of threads on this subject here on LQ. A fresh install is always a better choice.
full-upgrade or dist-upgrade if your using apt-get works just fine, Debian isn't Ubuntu, going from one release to the next is usually very simple. The kde3>kde4 thing going from lenny>squeeze being the biggest issues lately. If your are using kde3 and plan on upgrading to testing you might want to try using smxi or remove kde3 then upgrade then install kde4.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with aptitude safe-upgrade mikieboy Debian 4 01-10-2008 05:11 PM
aptitude upgrade and kernel security mikieboy Debian 4 06-23-2006 11:41 AM
Aptitude bombs when trying to upgrade coralsaw Debian 3 06-06-2006 10:48 AM
Will 'aptitude upgrade or dist-upgrade' downgrade manually installed deb package? Akhran Debian 3 03-14-2006 02:40 PM
no IP address after aptitude upgrade of packages, dhcp gone pearman Debian 2 10-25-2005 04:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration