The right way to cleanly take away a package deal from a Debian-based distribution

Whenever you uninstall an software from Linux, be sure you’re doing it in such a manner as to take away each configuration information and dependencies.

The right way to cleanly take away a package deal from a Debian-based distribution
Whenever you uninstall an software from Linux, be sure you’re doing it in such a manner as to take away each configuration information and dependencies.

If you happen to’re utilizing Ubuntu or some other Debian-based distribution in your knowledge facilities, on-premises servers, or desktops, you have most likely run into an occasion the place you wanted to uninstall a chunk 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). 

Nevertheless, doing that leaves behind quite a lot of issues, primarily dependencies and configuration information. These straggling apps and information not solely take up house, however they may (“may” being the operative phrase) trigger safety points. You do not 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 possibly can cleanly take away these packages. What are these instructions? Let me display. 

Say you have put in WordPress on a server and wish to cleanly take away it. To first uninstall WordPress and take away all configuration information, challenge the command:

sudo apt-get purge wordpress

As soon as this command completes, you possibly can then take away the entire dependencies that had been put in alongside WordPress with the command: 

sudo apt-get autoremove

When that closing command finishes, WordPress can have been eliminated, together with all of its configuration information and dependencies. If you must take away an software from a Linux server or desktop, utilizing these two easy instructions is the best way to go.

Open Supply Weekly Publication

You do not wish to miss our suggestions, tutorials, and commentary on the Linux OS and open supply purposes.
Delivered Tuesdays

Enroll at this time

Enroll at this time

Additionally see

Picture: Jack Wallen

Leave a Reply

Your email address will not be published. Required fields are marked *