linux安装卸载软件的命令_shell命令卸载软件

linux安装卸载软件的命令_shell命令卸载软件linux卸载软件命令Linuxprovidesdifferentmethodsforinstallingsoftware.YoucaninstallsoftwarefromthestandardUbuntusoftwarerepositoriesusingtheUbuntuSoftwareCenter,fromoutsideofthestan…

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺

linux 卸载软件命令

linux 卸载软件命令

00_lead_image_uninstalling_software_in_linux

Linux provides different methods for installing software. You can install software from the standard Ubuntu software repositories using the Ubuntu Software Center, from outside of the standard Ubuntu software repositories, or by compiling source code. However, what if you need to uninstall a program?

Linux提供了不同的软件安装方法。 您可以安装软件,从标准的Ubuntu软件仓库使用Ubuntu软件中心,从标准的Ubuntu软件仓库的外面,或者通过编译源代码。 但是,如果您需要卸载程序怎么办?

If you’ve installed software from the Ubuntu software repositories using the Ubuntu Software Center, you can use the Ubuntu Software Center to uninstall that software as well. However, if you’re more comfortable using the command line, we’ll show you an easy way to see what’s installed on your system and uninstall programs.

如果您已使用Ubuntu软件中心从Ubuntu软件库中安装了软件,则也可以使用Ubuntu软件中心来卸载该软件。 但是,如果您更习惯使用命令行,我们将为您提供一种简单的方法来查看系统上已安装的内容并卸载程序。

If you have an idea of what you want to uninstall, but you don’t know the exact name, see our article about finding out exact package names in Linux. You can also use the “dpkg” command to see a list of all installed packages on your computer, press “Ctrl + Alt + T” to open a Terminal window. Type the following command at the prompt and press “Enter”.

如果您对要卸载的内容有所了解,但不知道确切的名称,请参阅有关在Linux中查找确切的软件包名称的文章。 您也可以使用“ dpkg”命令查看计算机上所有已安装软件包的列表,按“ Ctrl + Alt + T”打开“终端”窗口。 在提示符下键入以下命令,然后按“ Enter”。

dpkg --list

dpkg的--名单

NOTE: There are two dashes before “list”.

注意:“列表”之前有两个破折号。

01_dpkg_list_command

Scroll through the list of installed packages in the Terminal window to find the one you want to uninstall. Note the full name of the package.

在“终端”窗口中滚动浏览已安装软件包的列表,找到要卸载的软件包。 注意包的全名。

02_gimp_in_list

To uninstall a program, use the “apt-get” command, which is the general command for installing programs and manipulating installed programs. For example, the following command uninstalls gimp and deletes all the configuration files, using the “--purge” (there are two dashes before “purge”) command.

要卸载程序,请使用“ apt-get”命令,这是用于安装程序和操作已安装程序的常规命令。 例如,下面的命令卸载辫形并删除所有的配置文件,使用“ --吹扫”(有两个短划线“清洗”之前)命令。

sudo apt-get --purge remove gimp

sudo易于得到--清除删除瘸子

Enter your password when prompted and press “Enter”.

出现提示时输入密码,然后按“ Enter”。

NOTE: The password does not display as you type it. However, you can choose to display asterisks as you type the password.

注意:输入密码时,密码不会显示。 但是,您可以在输入密码时选择显示星号

03_uninstalling_gimp_with_purge

The uninstallation process begins and a summary of the actions to be taken displays. When asked if you want to continue, type a “y” and press “Enter”.

卸载过程开始,并显示要采取的措施的摘要。 当询问您是否要继续时,键入“ y”并按“ Enter”。

04_do_you_want_to_continue

The installation process continues. When it’s done, type “exit” at the prompt and press “Enter” to close the Terminal window, or click the “X” button in the upper-left corner of the window.

安装过程将继续。 完成后,在提示符下键入“ exit”,然后按“ Enter”以关闭“终端”窗口,或单击窗口左上角的“ X”按钮。

05_closing_terminal_window

If you don’t want to remove the configuration files, simply leave out the “--purge” command, as shown in the following command.

如果你不想删除配置文件,只需离开了“ --清除”命令,如图下面的命令。

sudo apt-get remove gimp

sudo apt-get删除gimp

06_uninstalling_gimp_without_purge

As discussed in this article, programs installed in Linux depend on other packages to function. When you uninstall a program, there may be packages that the uninstalled program depended upon that are no longer used. To remove any unused packages, use the “autoremove” command, as shown in the following command.

本文所述,Linux中安装的程序依赖于其他程序包才能起作用。 当您卸载程序时,可能不再使用已卸载程序所依赖的软件包。 要删除所有未使用的软件包,请使用“ autoremove”命令,如以下命令所示。

sudo apt-get autoremove

须藤apt-get autoremove

07_running_autoremove_command

You can combine the two commands for removing a program and removing dependencies that are no longer being used into one, as shown below (again, two dashes before “auto-remove”).

您可以将这两个命令组合在一起,以删除程序和删除不再使用的依赖项,如下所示(再次,在“自动删除”之前加两个破折号)。

sudo apt-get purge --auto-remove gimp

sudo易于得到净化--自动删除GIMP

08_using_one_command_to_autoremove

If you’re short on space, you can use the “clean” command to remove downloaded archive files, as shown below.

如果空间不足,可以使用“ clean”命令删除下载的存档文件,如下所示。

sudo apt-get clean

须藤apt-get clean

This command removes the aptitude cache in “/var/cache/apt/archives”. When you install a program, the package file is downloaded and stored in that directory. You don’t need to keep the files in that directory. However, the only drawback of deleting them, is that if you decide to install any of those programs again, the packages would have to be downloaded again.

此命令将删除“ / var / cache / apt / archives”中的智能缓存。 安装程序时,将下载软件包文件并将其存储在该目录中。 您无需将文件保留在该目录中。 但是,删除它们的唯一缺点是,如果您决定再次安装这些程序中的任何一个,则必须重新下载软件包。

09_cleaning_apt_cache

The “apt-get” is a handy tool that makes downloading, installing, and uninstalling programs quick and easy. For more information about using the “apt-get” command, type “apt-get” at the prompt and press “Enter”.

“ apt-get”是一种方便的工具,可以快速轻松地下载,安装和卸载程序。 有关使用“ apt-get”命令的更多信息,请在提示符下键入“ apt-get”,然后按“ Enter”。

翻译自: https://www.howtogeek.com/229699/how-to-uninstall-software-using-the-command-line-in-linux/

linux 卸载软件命令

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/195429.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 因工作站与主要域间的信任关系失败而导致请求失败_此工作站和域控不信任

    因工作站与主要域间的信任关系失败而导致请求失败_此工作站和域控不信任在服务器的日志上,这个错误应该大家都不陌生了,错误的特征,我给大致描述一下:在域中总是会有计算机由于某种原因,导致计算机账户的密码无法和lsasecret同步系统会在计算机登陆到域的时候,提示已经丢失域的信任关系。日志大致如下:EventID:5SourceNETLOGONType  ErrorDescription  Thesessionsetupfromth…

    2022年10月18日
    0
  • CORBA简介_吴帝聪简介

    CORBA简介_吴帝聪简介 1.CORBA:CommonObjectRequestBrokerArchitecture,通用对象请求代理体系。是由对象管理组(ObjectManagementGroup,OMG)制定的一种标准的面向对象分布式应用程序体系规范,旨在为异构分布式环境中,硬件和软件系统的互联而提出的一种解决方案。2.解决异构分布式系统两条主要原则:(1).寻求独立于平台的模型和抽象,这

    2022年4月19日
    48
  • Java实现七牛云文件或图片上传下载

    Java实现七牛云文件或图片上传下载文章目录一、准备工作1.1.为什么选择七牛云?1.2.七牛云注册二、java操作七牛云对象存储下载2.1.pom.xml引入依赖2.2.上传下载具体代码三、具体业务例子(七牛云做图片服务器–SpringBoot)3.1.pom.xml(此处继承上面的依赖多引入一个)3.2.创建一个html页面3.3.接下来就是FileUtil.java(判断图片的后缀是否符合要求)3.4.接下来写QiniuService.java3.5.最后是controller3.6.查看七牛云存储结果四、总结一、准备工作1

    2022年5月14日
    32
  • java栈方法_java栈的两种实现方法[通俗易懂]

    java栈方法_java栈的两种实现方法[通俗易懂]java栈的实现有两种方式:一.使用数组来实现://使用数组实现栈,功能包括进行内存扩展publicclassStack{privateint[]data;privateintlength;//表示初始化栈的内存长度privateinttop;//用来表示栈的实际长度privatefinalintexpandLength=20;//表示扩展的长度publicStack(i…

    2022年9月5日
    2
  • 解决SecureCRT 中文乱码

    解决SecureCRT 中文乱码在linux服务器上搭建solr,用的是SecureCRT 连接linux服务器,发现不能输入中文,配置文件中的中文也是乱码;先以为是SecureCRT工具编码的问题,把编码改成utf-8之后发现还是有乱码;最后才发现其实还有一个地方没有改配置,那就是字体必须是中文字体,而且字符集得是支持中文的字符集如gb2312:还有就是这里不能选择带@的中文字体,不然字体就是躺着的

    2022年7月17日
    15
  • ubuntu安装pycharm激活成功教程_pycharm安装后无解释器

    ubuntu安装pycharm激活成功教程_pycharm安装后无解释器首先需要安装JDK,Ubuntu自带openjdk的残留,可通过java-version命令进行查看,如果不安装JDK的话,pycharm安装时就会报错:NoJDKfound.PleasevalidateeitherIDEA_JDK,JDK_HOMEorJAVA_HOMEenvironmentvariable…,对于JDK的安装,网上有相当多的教程,但是大部分都不能利用…

    2022年8月29日
    1

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号