What happens if I remove a package from apt-get autoremove?

What happens if I remove a package from apt-get autoremove?

I’m in a situation where the list of orphaned packages to be removed by apt-get autoremove includes a package that I want to keep. Apparently I have accidentally removed a package which was depending on it. How can I now mark the package as explicitly desired, so that apt-get autoremove will not remove it?

How to remove a tmux dependency from autoremove?

Now autoremove won’t remove it. Now autoremove will remove the package if it is not a dependency of any other package. $ sudo apt-get install tmux Reading package lists… Done Building dependency tree Reading state information… Done tmux is already the newest version. tmux set to manually installed.

How to remove packages that were automatically installed?

You can remove them with a simple: Those packages were installed as requirements to other packages, which you’ve now removed. The system now thinks they can safely be removed. If you want to suppress the message and keep those packages installed (perhaps you’re now using them), use:

How to mark a package as manually installed?

$ man apt-mark manual manual is used to mark a package as being manually installed, which will prevent the package from being automatically removed if no other packages depend on it. Now autoremove won’t remove it. Now autoremove will remove the package if it is not a dependency of any other package.

How to remove all dependencies in apt-get purge?

Then the second pipe tr ‘ ‘ ‘ ‘ takes that result and removes, or truncates (hence tr), the newline (s) and replaces them with a space that separates the names. All of this returns a “space-delimited” list of the names of all dependency packages of PACKAGENAME that’s format-friendly for use with multiple package input to purge command-option.

Where do I find myPackage installation in apt-get?

However, it does log all the operations it performs, grouped by end-user request: if you look in /var/log/apt/history.log, you’ll find the mypackage installation, along with a list of all the other packages which were installed automatically alongside it. You can use this to undo the installation manually.