I ran sudo apt-get install tor which installed these packages: The following NEW packages will be installed: tor tor-geoipdb torsocks But when I tried to remove it with sudo apt-get remove tor - providing the same package name only tor , it is missing torsocks : The following packages will be REMOVED: tor tor-geoipdb So torsocks stays installed - I really hate this behavior.
Improve this question. MichalH MichalH 2, 1 1 gold badge 10 10 silver badges 27 27 bronze badges. What is the output of apt-cache rdepends torsocks? Add a comment. Active Oldest Votes. To uninstall a package with all its dependencies you can use --auto-remove sudo apt-get remove --auto-remove tor.
Improve this answer. Because this will uninstall all dependencies that aren't needed, but maybe I want to keep some of them. Nevermind, thanks for the answer. See my answer, you can and should mark the ones you want to keep as manually installed. Try Linux in your browser instead with DistroTest. He writes informational guides on Linux, aiming to provide a blissful experience to all newcomers. Not sure about movies, but if you want to talk about technology, he's your guy.
Let's look at the correct way to get rid of an application in Linux using Apt. How to Remove a Package With Apt Apt offers various commands that you can use to remove packages from your Linux computer.
Uninstall a Package With Apt-Get Remove Apt-get remove uninstalls the package from your system but keeps the configurations and other user settings associated with the package. To get a list of all the packages on your system, type: dpkg --list Search for the package you want to delete and note down its complete name.
Related: What Does "Bash" Mean in Linux Remove a Package With Apt-Get Purge Unlike apt-get remove , apt-get purge completely removes the package from your system, along with the personalized settings and configurations.
Launch your terminal and type in the following command to remove the package completely: sudo apt-get purge randompackage You will be asked for the root password; type it in and press Enter. An alternative way to purge packages using Apt is by using the --purge flag in the default apt-get remove command: sudo apt-get --purge remove randompackage Cleaning Up With Autoremove and Clean When you use apt-get install to install a package on your Linux machine, Apt downloads the package from official repositories.
This command deletes all the packages that your system doesn't need anymore: sudo apt-get autoremove Enter the root user password and then type Y to confirm the uninstallation process.
Share Share Tweet Email. Related Topics Linux Uninstaller Linux. PCI Express 6. Wordle Scams. T-Mobile iCloud Private Relay. Avira Antivirus Crypto Miner. Linux PinePhone Pro. Google Green Messages. Use Your iPhone as a Webcam. Hide Private Photos on iPhone. All Microsoft's PowerToys for Windows. Take Screenshot by Tapping Back of iPhone. Windows 11 Default Browser. Browse All Windows Articles.
Windows 10 Annual Updates. OneDrive Windows 7 and 8. Copy and Paste Between Android and Windows. Protect Windows 10 From Internet Explorer. I've tried to install android-studio via apt-get in Ubuntu and find that a dependency package with a size of M is required to download from Google. Since I'm in China the network condition is so bad that I cannot download the package completely, and finally I have to give up.
However here comes a problem: now every time I execute apt-get I will get a hint of Incomplete dependency and be asked to download the package above. If I execute sudo apt-get remove android-studio an error will occur:. Open synaptic Install synaptic. Then go to status and choose Broken. Then remove completely the broken packages.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
0コメント