Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hello.
I'm using Debian 8.9 x64 and installed a program by "Synaptic" but when I remove it by "Synaptic" then dependencies not removed. For example, I installed "3cxpbx" and removed it but below dependencies are exist:
apt has an "auto remove" keyword that will remove any packages deemed no longer necessary for reasons such as this. You should use it with caution though, for example it has no idea if you've built up a program from source that requires package A, and may subsequently toss package A because it doesn't think it's required anymore, breaking your compiled program.
the best & safest solution is to ALWAYS use 'apt-get autoremove' after uninstalling or upgrading.
(and it will never remove packages that were explicitly installed, only as dependencies)
Also you may want to use the --purge when removing and autoremoving to also get rid of config files to completely get rid of everything associated with it.
This command, despite how it may appear, removes the package, purges its configuration files, and then autoremoves any auto-installed dependencies of not only that package but also any such dependencies that are marked as outstanding from previous package uninstallations (i.e. it is the equivalent of purging a package followed by issuing a general sudo apt-get autoremove).
This covers all bases except, of course, for the removal of any package-related personal configuration files (usually dot files) in your home directory, which is up to you to do if you so desire.
Unless you are dead certain that you're the only user of the system, I'd be careful about automatically removing something like a database. Someone else may have begun using it and would surely be upset to find their data gone or inaccessible. (PostgreSQL is also one to be wary of automatically upgrading. Some upgrades require an export-all-databases/upgrade/import-all-databases process and you may not realize that without reading the release notes beforehand.)
The command given in the earlier post does not "mark" anything, it REMOVES the target, and pretty much totally.
Was that not what you wanted?
I installed the application and when I removed it then some dependencies existed. For example, I never installed "Nginx" and "3cxpbx" installed it but after removed it, "Nginx" existed.
Unless you are dead certain that you're the only user of the system, I'd be careful about automatically removing something like a database. Someone else may have begun using it and would surely be upset to find their data gone or inaccessible. (PostgreSQL is also one to be wary of automatically upgrading. Some upgrades require an export-all-databases/upgrade/import-all-databases process and you may not realize that without reading the release notes beforehand.)
"3cxpbx" installed "PostgreSQL". What does "upgrade" mean? Is you mean OS upgrade?
Most likely the term upgrade means to install a newer version of a package with the distribution package manager.
stolen from the web:
Quote:
Linux Distribution Basics: Rolling Releases vs. Standard Releases. Linux distributions tend to use two different types of release cycles: standard releases and rolling releases. Some people swear by rolling releases to have the latest software, while others like standard releases for being more stable and tested.
Those standard releases just update every package at a certain point.
IT is a matter of discussion if you consider it an os upgrade although they just update every package than instead of updating the packages when they are available.
I installed the application and when I removed it then some dependencies existed. For example, I never installed "Nginx" and "3cxpbx" installed it but after removed it, "Nginx" existed.
Please run apt autoremove.
If any packages such as nginx exist after that then do not remove them unless you know *exactly* what you are doing, because the above command will have removed all automatically-installed dependencies that are no longer required by any other packages. Any remaining dependencies will probably be required.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.