Commands to remove a package using Terminal in Ubuntu
Published on Aug. 22, 2023, 12:13 p.m.
Commands to remove a package using Terminal in Ubuntu
Uninstall a package using the ‘remove’ command To uninstall or remove a package from the Ubuntu system.
$ sudo apt-get remove package_name
You can also remove more than one package at the same time.
$ sudo apt-get remove package_name1 package_name2
Uninstall package using the ‘purge’ command. The ‘apt-get remove’ command removes the entire package from your Ubuntu system.But, it leaves some packages and configuration files behind.The following ‘purge’ command is used to uninstall a package completely:
$ sudo apt-get remove ––purge package_name
These leftover or unused packages can remove from the Ubuntu system.
$ sudo apt autoremove
You can also clean the outdated/ old packages from the cache.
$ sudo apt-get clean
Using the below command, you can easily display the list of all the snap packages installed:
$ snap list
Once the installed snap packages list is created, use the following command to remove the snap package:
$ sudo snap remove package-name