Linux常用命令笔记---YUM
软件包名称-软件包版本-软件包修订次数(3.el).适用的硬件平台.扩展名
[root@szm bash]# yum -h
Loaded plugins: fastestmirror, priorities, refresh-packagekit
Usage: yum [options] COMMAND
List of Commands:
check Check for problems in the rpmdb
check-update Check for available package updates
clean Remove cached data
deplist List a package's dependencies
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade downgrade a package---下载可用升级包
erase Remove a package or packages from your system
groupinfo Display details about a package group
groupinstall Install the packages in a group on your system
grouplist List available package groups
groupremove Remove the packages in a group from your system
help Display a helpful usage message
history Display, or use, the transaction history
info Display details about a package or group of packages
install Install a package or packages on your system
list List a package or groups of packages
load-transaction load a saved transaction from filename
makecache Generate the metadata cache
provides Find what package provides the given value--从特别的文件搜索软件包
reinstall reinstall a package
repolist Display the configured software repositories----查看软件仓库信息
resolvedep Determine which package provides the given dependency--查询软件包依赖
search Search package details for the given string
shell Run an interactive yum shell
update Update a package or packages on your system
upgrade Update packages taking obsoletes into account
version Display a version for the machine and/or available repos.
Options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C, --cacheonly run entirely from system cache, don't update cache
-c [config file], --config=[config file]
config file location
-R [minutes], --randomwait=[minutes]
maximum command wait time
-d [debug level], --debuglevel=[debug level]
debugging output level
--showduplicates show duplicates, in repos, in list/search commands
-e [error level], --errorlevel=[error level]
error output level
--rpmverbosity=[debug level name]
debugging output level for rpm
-q, --quiet quiet operation
-v, --verbose verbose operation
-y, --assumeyes answer yes for all questions
--version show Yum version and exit
--installroot=[path] set install root----设置指定安装目录
--enablerepo=[repo] enable one or more repositories (wildcards allowed)
--disablerepo=[repo] disable one or more repositories (wildcards allowed)
-x [package], --exclude=[package]
exclude package(s) by name or glob
--disableexcludes=[repo]
disable exclude from main, for a repo or for
everything
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins
--nogpgcheck disable gpg signature checking
--disableplugin=[plugin]
disable plugins by name
--enableplugin=[plugin]
enable plugins by name
--skip-broken skip packages with depsolving problems
--color=COLOR control whether color is used
--releasever=RELEASEVER
set value of $releasever in yum config and repo files
--setopt=SETOPTS set arbitrary config and repo options
Plugin Options:
--samearch-priorities
Priority-exclude packages based on name + arch
-localinstall安装本地rpm文件,解决依赖问题 |
[root@szm bash]# yum whatprovides /bin/ls
第一列:文件的属性 |
S:文件大小或容量与原文件不同 |
c:代表配置文件 |
Enable:0禁用,1启用 gpgcheck:0禁用,1启用 帮助文档:man yum.conf |
转载于:https://blog.51cto.com/2816056/1153758
Linux常用命令笔记---YUM相关推荐
- Linux 常用命令笔记
Linux 常用命令笔记 1. locate locate:用来定位文件的位置,如:locate a.txt 但是这个命令有延迟,也就是新建的文件不一定能搜索到,如果非要找到新建的文件可以使用 upd ...
- Linux 常用命令笔记
1.mkdir : 创建目录,make directorys,-p 递归创建目录 mkdir-p /a/b/c 2.ls : -l(long)d(directory)显示目录或文件,全称list - ...
- Linux常用命令笔记---创建私有YUM源
前提: 1)www或者ftp且可以访问 2)createrepo更新YUM数据库 [root@szm Downloads]# cd /media/CentOS_6.0_Final/repodata/ ...
- Linux常用命令之yum
我这里写的是我遇到的而且比较简单的方法,也许使用yum的时候还有其他情况,但我这里并不想探究.首先使用yum肯定会有yum源的问题,比如我的linux时centos 6.5,将这个虚拟机装好之后是使用 ...
- linux常用命令笔记大全
===================目录操作======================== mkdir: 创建目录 -p : 递归的创建目录 也就是可以创建多层目录 一次创建多个目录: mkdir ...
- Linux常用命令笔记
Linxu核心命令与文件管理 cd 命令 cd 语法 cd 可选的参数 文件夹几个特殊的目录 . 当前的工作目录 .. 上一级的工作目录 - 上一次的工作目录 ls list 列出文件夹中的内容 ls ...
- 新手小白 linux 常用命令笔记
linux命令: reboot 重启 power off 关闭操作系统 ifconfig 查看ip地址 IP cd 切换目录 pwd 查看当前工作目录 mkdir 创建文件夹 -p 建立多级目录 rm ...
- Linux常用命令笔记与Windows部分命令
Linux命令 1.帮助命令 1.1 man获得帮助信息 eg:查看ls命令的帮助信息 man ls 1.2 help获得shell内置命令的帮助信息 mv命令(移动文件或重命名) 重命名:(将文件f ...
- Linux常用命令笔记一
笔记1:查看ubuntu是32位还是64位的方法及其版本号 查看ubuntu是64还是32的命令如下: uname -m 如果是i386到i686,那就是32位系统:如果是x86_64 ,那就是64系 ...
最新文章
- 程序运行 栈帧分析 以及 修改栈帧中数据以及函数地址
- 美国防部DARPA发起地下空间挑战赛提供3百万美元巨奖
- 2009年1月答疑帖
- Singularity将本地SIF文件,转成sandbox
- uniapp实现滑动导航
- java软件工程师自我评价_java开发简历自我评价【java简历自我评价模板】
- python使用Snap7读写西门子S7系列PLC
- icem划分网格步骤_ICEM CFD教程-icem网格划分教程
- FlowNet 2.0的阅读笔记
- 云服务器网站不显示图片,解决帝国cms图片显示不出来的问题
- 计算机应用班级口号,适用于班级的口号大全
- rss订阅 android,是的!我用这些软件订阅 RSS
- dcmtk读取dcm文件中Tag值
- 【图像识别】基于卷积神经网络实现手写汉字识别附matlab代码
- PHP Fatal error: Call to undefined function Controller\\mb_strtoupper()
- 精简字体库:FontSubsetGUI,FontForge
- IntelliJ IDEA快速入门 | 第一篇:你不会还不知道IntelliJ IDEA吧!不要太low哦!
- hyper v设置虚拟机动态内存,内存最大最小值
- 关于Android Studio HttpURLconnection使用时报错
- 能在html中打开ppt吗,怎样在PPT中直接打开网页
热门文章
- c语言adc采集取平均值,单片机ADC采样算法----递推平均值采样法
- 别转的那么快,该打码的还没打码
- 沈阳建筑学计算机专硕调剂,沈阳建筑大学2020考研网上调剂公告
- BGA Banner 轮播图 引导图
- 什么是ppm,如何转化到西格玛水平
- Windows远程桌面实现之五(FFMPEG实现桌面屏幕RTSP,RTMP推流及本地保存)
- 2017年物联网十大发展趋势
- **浅析中国古代园林艺术**
- Visual Studio 2015、2017、2019 和 2022运行库合集
- 图片透明代码html5,javascript – 透明图像背景html5画布