LinuxQuestions.org
Help answer threads with 0 replies.
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, 06:24 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,615

Rep: Reputation: 47
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, 06: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: 331Reputation: 331Reputation: 331Reputation: 331
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, 06:28 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
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, 07:18 PM   #4
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

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 07:26 PM.
 
Old 07-19-2009, 07:58 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,650

Rep: Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525
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, 08:23 PM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,733
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:11 PM
aptitude upgrade and kernel security mikieboy Debian 4 06-23-2006 12:41 PM
Aptitude bombs when trying to upgrade coralsaw Debian 3 06-06-2006 11:48 AM
Will 'aptitude upgrade or dist-upgrade' downgrade manually installed deb package? Akhran Debian 3 03-14-2006 03:40 PM
no IP address after aptitude upgrade of packages, dhcp gone pearman Debian 2 10-25-2005 05:06 AM


All times are GMT -5. The time now is 01:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration