Whenever you uninstall an utility from Linux, be sure to’re doing it in such a approach as to take away each configuration recordsdata and dependencies.
When you’re utilizing Ubuntu or some other Debian-based distribution in your knowledge facilities, on-premises servers, or desktops, you’ve got most likely run into an occasion the place you wanted to uninstall a bit of software program. So that you log in and run the command: sudo apt-get take away packagename (the place packagename is the precise title of the package deal to be eliminated).
Nonetheless, doing that leaves behind numerous issues, primarily dependencies and configuration recordsdata. These straggling apps and recordsdata not solely take up house, however they may (“may” being the operative phrase) trigger safety points. You don’t need that. So what do you do?
SEE: Selecting your Home windows 7 exit technique: 4 choices (TechRepublic Premium)
With simply two easy instructions you may cleanly take away these packages. What are these instructions? Let me reveal.
Say you’ve got put in WordPress on a server and need to cleanly take away it. To first uninstall WordPress and take away all configuration recordsdata, situation the command:
sudo apt-get purge wordpress
As soon as this command completes, you may then take away all the dependencies that have been put in alongside WordPress with the command:
sudo apt-get autoremove
When that ultimate command finishes, WordPress may have been eliminated, together with all of its configuration recordsdata and dependencies. If you should take away an utility from a Linux server or desktop, utilizing these two easy instructions is the best way to go.