Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Distributions»Ubuntu»How to Remove Packages from Ubuntu & Debian

    How to Remove Packages from Ubuntu & Debian

    RahulBy RahulApril 17, 20213 Mins Read

    The APT (Advanced Package Tool) is a powerful package management tool for Debian based systems. It provides powerful command-line tool like “apt” or “apt-get”. Which is used to install, upgrade or remove a software package on your Debian system.

    In this tutorial, you will learn to how to uninstall or remove packages from a Ubuntu or Debian Linux system.

    How to Remove Packages via Command Line

    You can use “apt” command line tool for removing packages from your system. For older version of operating systems use “apt-get” command with the same options.

    Use one of the below options to remove, purge packages from system. Clean the cache files to remove unused software’s from the system.

    Using remove option:

    To remove a specific package, use the apt remove command:

    sudo apt remove [package-name] 
    

    This command prompts apt to scan through the installed applications and attempt to remove or repair any that are broken.

    Using purge option:

    The default remove command only deletes the software files from the system, but keep all the configuration files for safety purpose. In case of accidental deletion the configuration and data files are safe.

    If you want to completely remove all the data, application and configuration files, use –purge option with the above command. like:

    sudo apt remove ––purge [package-name] 
    

    Using clean option:

    Use this option with apt to delete all the cache files of deleted software from your system.

    Also removes the apt package manager cache from system.

    sudo apt clean 
    

    Using autoremove option:

    Most of the software’s installed the dependent packages on your system. Which you can see during the installation of any software on your system. But they still remains on your system after removing the original package your installed.

    With the help of this command, you can remove orphaned dependencies from system

    sudo apt autoremove 
    

    Any users don’t feel comfert with command line can use the graphical interface to remove packages from system.

    Uninstall Packages via Graphical Interface

    The Desktop users can remove packages using the Ubuntu software center. The Ubuntu software center provides you a graphical interface for installation, update and removal of the packages from system.

    Search for the Ubuntu software center under the applications and launch it.

    Open Ubuntu Software Center

    Go to the installed tab. Here you will find a list of all packages installed on your Ubuntu system. Find your package and click “Remove” button in front of the package name. See below image:

    Remove package from Ubuntu

    A confirmation dialog will appear here. Again click click to complete deletion.

    Delete Software from Ubuntu

    You may prompted for a sudo password of your account to complete the package removal process.

    Conclusion

    This tutorial describes a several ways to remove packages from a Ubuntu Linux systems.

    apt apt-get Ubuntu
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install netstat Command in Linux
    Next Article How to Install Puppet on Ubuntu 20.04

    Related Posts

    How to Install Composer on Ubuntu 22.04

    Updated:June 24, 20223 Mins Read

    Setup Selenium with Python and Chrome on Ubuntu & Debian

    Updated:August 9, 20224 Mins Read

    How to Setup Squid Proxy Server on Ubuntu and Debian

    Updated:June 17, 20225 Mins Read

    How to Install Latest Node.js on Ubuntu

    Updated:August 4, 20223 Mins Read

    How to Install Apache Kafka on Ubuntu 22.04

    Updated:June 5, 20225 Mins Read

    Setting Up Environment Variables on Ubuntu

    Updated:May 28, 20222 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Import GPG Keys on Ubuntu & Debian (without apt-key)
    • How To Install Google Chrome On macOS
    • How to Install Minecraft on Ubuntu 22.04 & 20.04
    • Running a Cron job every Sunday (Weekly)
    • Running Multiple Commands At Once in Linux
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.