深度阅读

Commands to remove a package using Terminal in Ubuntu

作者
作者
2023年08月22日
更新时间
11.58 分钟
阅读时间
0
阅读量

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

博客作者

热爱技术,乐于分享,持续学习。专注于Web开发、系统架构设计和人工智能领域。