LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-25-2009, 12:14 AM   #1
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Squeeze, CrunchBang Waldorf
Posts: 514

Rep: Reputation: 38
aptitude: upgrade


Using Debian Lenny
I want to start using Aptitude.
I have been reading through the manual and articles, but have
some questions.
Is upgrade the same as safe-upgrade and dist-upgrade the same as
full-upgrade?
When would I use safe or full upgrade?

According to the manual it says:
Quote:
It is sometimes necessary to remove one package in order to upgrade
another; this command is not able to upgrade packages in such situations.
When would there be a need for this? Would it be necessary in
a stable release?

When should I use purge. wouldn't I want to remove the config files if
I am removing the program?
 
Old 09-25-2009, 08:06 AM   #2
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 6/7, Vista, XP , WIN7, Server 03/08
Posts: 1,287

Rep: Reputation: 97
I cannot answer all your questions as I am not familiar with full-upgrade, however, I can tell you the regular upgrade will upgrade installed software to newer versions available in the repository, dist-upgrade will upgrade you to the newest version of the OS, say for instance Lenny is superceeded by sid in the stable branch a dist-upgrade would upgrade everything, of course I usually use apt-get for specific packages, but I also like aptitude which is a front end for apt-getin a curses based front end.

As far as purge goes, you may want to remove configs unless you are reinstalling it later or adding a new version.
 
Old 09-25-2009, 08:47 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,644

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
Quote:
dist-upgrade will upgrade you to the newest version of the OS
Incorrect and misleading.

'upgrade' is the old name for 'safe-upgrade' and will update packages without adding or removing any packages. Sometimes, new versions depend on new packages, or packages are removed, etc. 'dist-upgrade' is the old name for 'full-upgrade' and will upgrade everything that needs upgrading, removing packages or adding new packages if needed.

Quote:
I also like aptitude which is a front end for apt-getin a curses based front end.
Not quite right; aptitude is another frontend for dpkg. It's also been Recommended over apt-get by Debian for years. And it's not just curses-based; most of the command-line commands are the same as in apt-get.

Last edited by AlucardZero; 09-25-2009 at 08:49 AM.
 
Old 09-25-2009, 09:43 AM   #4
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Squeeze, CrunchBang Waldorf
Posts: 514

Original Poster
Rep: Reputation: 38
I found this in the Aptitude user's manual:
Quote:
aptitude full-upgrade

Like safe-upgrade, this command will attempt to upgrade packages, but it is more aggressive about solving dependency problems: it will install and remove packages until all dependencies are satisfied. Because of the nature of this command, it is possible that it will do undesirable things, and so you should be careful when using it.
I'm not understanding how this would be a problem. Wouldn't Aptitude upgrade within
the same release?

Thanks
 
Old 09-25-2009, 09:58 AM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,644

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
Quote:
Wouldn't Aptitude upgrade within
the same release?
Yes. You will not move releases unless you change your sources.list, or your sources.list e.g. points to "stable" instead of "lenny" and the definition of "stable" changes to "squeeze" (when squeeze is declared stable).
 
Old 09-25-2009, 10:15 AM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
it will install and remove packages until all dependencies are satisfied.
You seem to be missing the key point here. As explained before, the big difference between the regular upgrade and dist-upgrade/full upgrade is that the latter will remove packages in addition to updating and installing. If, for example, there's a conflict that requires removing a library that kde, or gnome, or xorg, or whatever depends on, then say goodbye to your kde, gnome, or xorg (and everything that depends on them).

dist-upgrade is mostly there for the purpose of upgrading to a new distribution level, where the main idea is to configure the base system to the specified point. Higher-level user tools take a back seat to this. Yes, it can be also used within a single release and usually not be too much of a problem, because the base system won't change too much, but you do have to watch what it does very carefully, because it will sometimes attempt to remove things you don't want it to.

Last edited by David the H.; 09-25-2009 at 10:17 AM.
 
  


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
Distribution Upgrade using aptitude cccc Debian 5 07-19-2009 07:23 PM
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


All times are GMT -5. The time now is 05:29 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