Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there an equivalent to doing aptitude safe-upgrade using apt-get?

share|improve this question
    
My first thoughts came to dist-upgrade, but I don't think that's actually the same thing as safe-upgrade. –  Jeff Welling Mar 29 '12 at 16:55
    
there is not. aptitude exists to provide stuff not in apt-* –  Janus Troelsen Mar 29 '12 at 17:11

2 Answers 2

up vote 17 down vote accepted

The apt-get command closer to aptitude safe-upgrade is upgrade, but there is a difference.

aptitude safe-upgrade upgrades currently installed packages and can install new packages to resolve new dependencies, but never removes packages.

apt-get upgrade upgrades currently installed packages, but never installs or removes packages.

So apt-get upgrade is comparable to aptitude --no-new-installs safe-upgrade.

share|improve this answer

To be a bit more precise on package removal:

man aptitude says:

-safe-upgrade ... Installed packages will not be removed unless they are unused ...

whereas man apt-get says:

-upgrade ...under no circumstances are currently installed packages removed ...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.