Linux 软件安装、更新、卸载命令(yum)实操

 时间:2024-10-12 09:33:31

1、yum命令语法说明:Usage: yum [options] COMMANDList of Commands:check 检查 伊怕锱鳏RPM 数据库问题check-update 检查是否有可用的软件包更新clean 删除缓存数据deplist 列出软件包的依赖关系distribution-synchronization 已同步软件包到最新可用版本downgrade 降级软件包erase 从系统中移除一个或多个软件包fs Acts on the filesystem data of the host, mainly for removing docs/lanuages for minimal hosts.fssnapshot Creates filesystem snapshots, or lists/deletes current snapshots.groups 显示或使用、组信息help 显示用法提示history 显示或使用事务历史info 显示关于软件包或组的详细信息install 向系统中安装一个或多个软件包langavailable Check available languageslanginfo List languages informationlanginstall Install appropriate language packs for a languagelanglist List installed languageslangremove Remove installed language packs for a languagelist 列出一个或一组软件包load-transaction 从文件名中加载一个已存事务makecache 创建元数据缓存provides 查找提供指定内容的软件包reinstall 覆盖安装软件包repo-pkgs 将一个源当作一个软件包组,这样我们就可以一次性安装/移除全部软件包。repolist 显示已配置的源search 在软件包详细信息中搜索指定字符串shell 运行交互式的 yum shellswap Simple way to swap packages, instead of using shellupdate 更新系统中的一个或多个软件包update-minimal Works like upgrade, but goes to the 'newest' package match which fixes a problem that affects your systemupdateinfo Acts on repository update informationupgrade 更新软件包同时考虑软件包取代关系version 显示机器和/或可用的源版本。Options: -h, --help 显示此帮助消息并退出 -t, --tolerant 忽略错误 -C, --cacheonly 完全从系统缓存运行,不升级缓存 -c [config file], --config=[config file] 配置文件路径 -R [minutes], --randomwait=[minutes] 命令最长等待时间 -d [debug level], --debuglevel=[debug level] 调试输出级别 --showduplicates 在 list/search 命令下,显示源里重复的条目 -e [error level], --errorlevel=[error level] 错误输出级别 --rpmverbosity=[debug level name] RPM 调试输出级别 -q, --quiet 静默执行 -v, --verbose 详尽的操作过程 -y, --assumeyes 回答全部问题为是 --assumeno 回答全部问题为否 --version 显示 Yum 版本然后退出 --installroot=[path] 设置安装根目录 --enablerepo=[repo] 启用一个或多个软件源(支持通配符) --disablerepo=[repo] 禁用一个或多个软件源(支持通配符) -x [package], --exclude=[package] 采用全名或通配符排除软件包 --disableexcludes=[repo] 禁止从主配置,从源或者从任何位置排除 --disableincludes=[repo] disable includepkgs for a repo or for everything --obsoletes 更新时处理软件包取代关系 --noplugins 禁用 Yum 插件 --nogpgcheck 禁用 GPG 签名检查 --disableplugin=[plugin] 禁用指定名称的插件 --enableplugin=[plugin] 启用指定名称的插件 --skip-broken 忽略存在依赖关系问题的软件包 --color=COLOR 配置是否使用颜色 --releasever=RELEASEVER 在 yum 配置和 repo 文件里设置 $releasever 的值 --downloadonly 仅下载而不更新 --downloaddir=DLDIR 指定一个其他文件夹用于保存软件包 --setopt=SETOPTS 设置任意配置和源选项 --bugfix Include bugfix relevant packages, in updates --security Include security relevant packages, in updates --advisory=ADVS, --advisories=ADVS Include packages needed to fix the given advisory, in updates --bzs=BZS Include packages needed to fix the given BZ, in updates --cves=CVES Include packages needed to fix the given CVE, in updates --sec-severity=SEVS, --secseverity=SEVS Include security relevant packages matching the severity, in updates

2、登陆linux系统。输入用户和密码登陆linux系统。

Linux 软件安装、更新、卸载命令(yum)实操

3、打开终端命令。右键选择打开终端菜单即可打开终端命令。

Linux 软件安装、更新、卸载命令(yum)实操
Linux 软件安装、更新、卸载命令(yum)实操

4、yum 命令实操,安装一个软件。在linux 系统通过 yum命令安装SSH软件。输入命令:yum install openssh-server ,按回车键,进行安装过程会询问是否确认安装输入y 确认安装即可。

Linux 软件安装、更新、卸载命令(yum)实操

5、yum 命令实操,更新一个软件。在linux 系统通过 yum命令更新SSH软件,升级到最新版本。输入命令:yum update openssh-server,按回车键系统会自动检测最新的升级包,并完成升级。

Linux 软件安装、更新、卸载命令(yum)实操

6、yum 命令实操,卸载一个软件。在linux 系统通过 yum命令卸载SSH软件。输入命令:yum update openssh-server,按回车键会进行卸载过程,过程会询问是否确认卸载,输入y确认即可完成卸载。

Linux 软件安装、更新、卸载命令(yum)实操

7、总结本文的内容:1. yum命令语法说明。2. 登陆linux系统。3. 打开终端命令。4. yum 命令实操,安装一个软件。5. yum 命令实操,更新一个软件。6. yum 命令实操,卸载一个软件。感谢你的阅读,希望给你带来帮助。

Linux 软件安装、更新、卸载命令(yum)实操
  • 子宫内膜异位症是否影响怀孕?
  • 棘头虫病的防治
  • 福建地区电工进网作业许可证网上报名流程
  • 三国志战略版资源不平均怎么办
  • C#控制台程序如何用UrlEncode
  • 热门搜索
    语言的魅力手抄报 建军节手抄报内容 感谢师恩手抄报 宣传普通话手抄报 诵读经典手抄报 水浒传手抄报图片 科技改变生活手抄报 关于邪教的手抄报 关于感恩父母的手抄报 清明手抄报图片大全