Package is "set to manually installed"? What does it Mean?

Noticed a "package set to manually installed" message in Ubuntu? Here's what it means and why you see it for some packages only.
Warp Terminal

If you use the apt command to install packages in the terminal, you’ll see all kinds of output.

If you pay attention and read the output, sometimes you’ll notice a message that reads:

package_name set to manually installed

Have you ever wondered what this message means and why you don’t see it for all packages? Let me share some details in this explainer.

Understanding “Package set to manually installed”

You’ll see this message when you try installing an already installed library or development package. This dependency package was installed automatically with another package. The dependency package gets removed with the apt autoremove command if the main package is removed.

But since you tried to install the dependency package explicitly, your Ubuntu system thinks that you need this package independent of the main package. And hence the package is marked as manually installed so that it is not removed automatically.

Not very clear, right? Take the example of installing VLC on on Ubuntu.

Since the main vlc package depends on a number of other packages, those packages are automatically installed with it.

installing vlc with apt ubuntu
Several dependencies are installed when with VLC

If you check the list of installed packages that have vlc in their name, you’ll see that except vlc, the rest are marked ‘automatic’. This indicates that these packages were installed automatically (with vlc) and they will be removed automatically with apt autoremove command (when vlc is uninstalled).

list installed packages vlc ubuntu
Except for vlc (at the end), the rest of the packages are marked ‘automatic’

Now suppose you thought to install “vlc-plugin-base” for some reason. If you run the apt install command on it, the system tells you that the package is already installed. At the same time, it changes the mark from automatic to manual because the system thinks that you need this vlc-plugin-base explicitly as you tried to manually install it.

package set manually
Package set to manually installed

You can see that its status has been changed to [installed] from [installed,automatic].

listing installed packages with vlc
Status changes for the manually installed package

Now, let me remove VLC and run the auoremove command. You can see that “vlc-plugin-base” is not in the list of packages to be removed.

autoremove vlc ubuntu

Check the list of installed packages again. vlc-plugin-base is still installed on the system.

listing installed packages after removing vlc

You can see two more vlc-related packages here. These are the dependencies for the vlc-plugin-base package and this is why they are also present on the system but marked ‘automatic’.

I believe things are more clear now with the examples. Let me add a bonus tip for you.

Reset package to automatic

If the state of the package got changed to manual from automatic, you can set it back to automatic in the following manner:

sudo apt-mark auto package_name
set package to automatic

Conclusion

This is not a major error and doesn’t stop you from doing your work in your system. However, knowing these little things increase your knowledge a little.

Curiosity may have killed the cat, but it makes a penguin smarter. That’s an original quote to add humor to this otherwise dull article :)

Since you are curious about the small details of the apt packages, here are a few more such articles for you.

apt remove vs apt purge: What’s the Difference?
To uninstall an application in the Ubuntu terminal, you can use: sudo apt remove package_name But in various forums, you may come across the suggestion to use the apt purge command for removing applications completely. This leaves you confused because using apt purge is quite similar…

Understanding sources.list also helps improve your apt package manager knowledge.

What is the Use of sources.list File in Ubuntu Linux?
Understanding the concept of sources.list in Ubuntu will help you understand and fix common update errors in Ubuntu.

Let me know if you would like to read more such articles that may seem insignificant but help you understand your Linux system a tiny bit better.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.