Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I install a debian package but make apt consider it automatically installed? I.e. if I later run apt-get autoremove, this package would be uninstalled.

share|improve this question
add comment

1 Answer

The best way I've found is to run:

apt-get install mypackage myotherpackage
apt-mark auto mypackage myotherpackage

If you have aptitude installed, you can also do:

aptitude -o Aptitude::Delete-Unused=false install mypackage+M myotherpackage+M
share|improve this answer
add comment

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.