Should I switch to apt-get after upgrading to Squeeze?
DebianThis forum is for the discussion of Debian Linux.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Should I switch to apt-get after upgrading to Squeeze?
I'm running Lenny, and I've always used aptitude. The upgrade instructions on Debian's website say that apt-get is preferred for doing the upgrade to Squeeze, and also says that apt-get now provides equivalent functionality. So is there any reason to continue to use aptitude after upgrading to Squeeze, and if so, will there be any problems caused by having used apt-get for the upgrade? Or will there be problems caused by switching to apt-get after using aptitude before the upgrade?
I switched to apt-get. Aptitude will do more things for you and its defaults are often more helpful, but I've seen it get some rare corner cases wrong. From what I gather, that's been the case for a long time.
In my case it turned out to be a good thing anyway: I spent more time learning how to use dpkg as well, which I had severely under-appreciated.
Nowadays there is no difference in using aptitude or the group of the apt-commands (apt-get, apt-cache, apt-file).
Use what you are more used to or learn how to use the side, no side effects, just your decision.
In some cases, the use of apt-get for installing packages instead of aptitude might make aptitude consider a package as “unused” and schedule it for removal. In general, you should make sure the system is fully up-to-date and “clean” before proceeding with the upgrade.
Because of this you should review if there are any pending actions in the package manager aptitude. If a package is scheduled for removal or update in the package manager, it might negatively impact the upgrade procedure. Note that correcting this is only possible if your sources.list still points to lenny and not to stable or squeeze; see Section A.2, “Checking your sources list”.
To perform this review, launch aptitude in “visual mode” and press g (“Go”). If it shows any actions, you should review them and either fix them or implement the suggested actions. If no actions are suggested you will be presented with a message saying “No packages are scheduled to be installed, removed, or upgraded”.
It is desirable to remove any holds before upgrading. If any package that is essential for the upgrade is on hold, the upgrade will fail.
Note that aptitude uses a different method for registering packages that are on hold than apt-get and dselect. You can identify packages on hold for aptitude with;
Code:
# aptitude search "~ahold"
If that is understandable then it should be clear that upgrade should be done with apt-get and after the upgrade it is advisable that apt-get is used for package management.
To note;
Quote:
Note that it is bad practice to use aptitude and apt-get interchangeable, as they record changes made by a user separately.
And to finish, as you mentioned;
Quote:
The recommended way to upgrade from previous Debian GNU/Linux releases is to use the package management tool apt-get. In previous releases, aptitude was recommended for this purpose, but recent versions of apt-get provide equivalent functionality and also have shown to more consistently give the desired upgrade results.
I'm running Lenny, and I've always used aptitude. The upgrade instructions on Debian's website say that apt-get is preferred for doing the upgrade to Squeeze, and also says that apt-get now provides equivalent functionality. So is there any reason to continue to use aptitude after upgrading to Squeeze, and if so, will there be any problems caused by having used apt-get for the upgrade? Or will there be problems caused by switching to apt-get after using aptitude before the upgrade?
apt-get was the easy way to update from stable to stable.
Whatever you use next is your choice (I prefer aptitude and its many options).
Thanks for the replies. I've decided to switch to apt-get. Unfortunately, the upgrade did not go well. apt-get won't get updates (lock issue), xserver won't start (looks like a driver issue, but it worked fine with Lenny...) and the customer relations management software (Vtiger), which is the raison d'etre for this server, won't run (MySQL issue). So I'm doing a clean install of Squeeze, which so far has gone quite well. I think that this is what I should have done in the first place; it will be a lot more work, but I think that the end result, with all new software, will be worth the effort.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
I have always found a clean install to be easier in the long run. You save a lot of time not having to clean out all the obsolete files, system and non system, that have built up in the drive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.