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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-25-2009, 12:14 AM
|
#1
|
|
Member
Registered: Jun 2007
Distribution: Debian Squeeze
Posts: 445
Rep:
|
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?
|
|
|
|
09-25-2009, 08:06 AM
|
#2
|
|
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 5.0(Lenny), Vista, XP , WIN7, Server 03/08
Posts: 1,270
Rep:
|
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.
|
|
|
|
09-25-2009, 08:47 AM
|
#3
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474
|
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.
|
|
|
|
09-25-2009, 09:43 AM
|
#4
|
|
Member
Registered: Jun 2007
Distribution: Debian Squeeze
Posts: 445
Original Poster
Rep:
|
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
|
|
|
|
09-25-2009, 09:58 AM
|
#5
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474
|
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).
|
|
|
|
09-25-2009, 10:15 AM
|
#6
|
|
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,577
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:31 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|