- 浏览: 163923 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
GunChin:
有些复杂,看得不是很懂
RAILS -
shellfish:
恩,红帽默认的SELinux的级别是强制,这个一般我不大用,装 ...
华思服务器一个奇怪问题的解决方法 -
机器人:
你说得太好了了了了了了了 子 啊啊啊啊,呼啦啦。
GIT handbook -
hbxiao135:
能介绍下 fat free crm的 流程分析吗?
(CRM)customer relationship management sysetm
最近装的服务器都是装centos系统的, 没有了 apt-get 还真有点不习惯了
现在系统软件管理包是用的yum,在网上找了些yum的使用命令,其实也跟我yum -h获得的信息差不多
但是则个比较详细
SYNOPSIS
yum [options] [command] [package ...]
DESCRIPTION
yum is an interactive, automated update program which can be used for maintaining systems using rpm command is one of: * install package1 [package2] [...] * update [package1] [package2] [...] * check-update * upgrade [package1] [package2] [...] * remove | erase package1 [package2] [...] * list [...] * info [...] * provides | whatprovides feature1 [feature2] [...] * clean [ packages | headers | metadata | cache | dbcache | all ] * makecache * groupinstall group1 [group2] [...] * groupupdate group1 [group2] [...] * grouplist [hidden] * groupremove group1 [group2] [...] * groupinfo group1 [...] * search string1 [string2] [...] * shell [filename] * resolvedep dep1 [dep2] [...] * localinstall rpmfile1 [rpmfile2] [...] * localupdate rpmfile1 [rpmfile2] [...] * deplist package1 [package2] [...] Unless the --help or -h option is given, one of the above commands must be present. install Is used to install the latest version of a package or group of packages while ensuring that all dependencies are satisfied. If no package matches the given package name(s), they are assumed to be a shell glob and any matches are then installed. update If run without any packages, update will update every currently installed package. If one or more packages are specified, Yum will only update the listed packages. While updating packages, yum will ensure that all dependencies are satisfied. If no package matches the given package name(s), they are assumed to be a shell glob and any matches are then installed. If the --obsoletes flag is present yum will include package obsoletes in its calculations - this makes it better for dis- tro-version changes, for example: upgrading from somelinux 8.0 to somelinux 9. check-update Implemented so you could know if your machine had any updates that needed to be applied without running it interactively. Returns exit value of 100 if there are packages available for an update. Also returns a list of the pkgs to be updated in list format. Returns 0 and no packages are available for update. upgrade Is the same as the update command with the --obsoletes flag set. See update for more details. remove or erase Are used to remove the specified packages from the system as well as removing any packages which depend on the package being removed. list Is used to list various information about available packages; more complete details are available in the List Options section below. provides or whatprovides Is used to find out which package provides some feature or file. Just use a specific name or a file-glob-syntax wildcards to list the packages available or installed that provide that feature or file. search Is used to find any packages matching a string in the descrip- tion, summary, packager and package name fields of an rpm. Use- ful for finding a package you do not know by name but know by some word related to it. info Is used to list a description and summary information about available packages; takes the same arguments as in the List Options section below. clean Is used to clean up various things which accumulate in the yum cache directory over time. More complete details can be found in the Clean Options section below. shell Is used to enter the ’yum shell’, when a filename is specified the contents of that file is executed in yum shell mode. See yum-shell(8) for more info resolvedep Is used to list packages providing the specified dependencies, at most one package is listed per dependency. localinstall Is used to install a set of local rpm files. If required the enabled repositories will be used to resolve dependencies. localupdate Is used to update the system by specifying local rpm files. Only the specified rpm files of which an older version is already installed will be installed, the remaining specified packages will be ignored. If required the enabled repositories will be used to resolve dependencies. deplist Produces a list of all dependencies and what packages provide those dependencies for the given packages.
GENERAL OPTIONS
Most command line options can be set using the configuration file as well and the descriptions indicate the necessary configuration option to set. -h, --help Help; display a help message and then quit. -y Assume yes; assume that the answer to any question which would be asked is yes. Configuration Option: assume-yes -c [config file] Specifies the config file location - can take http, ftp urls and local file paths. -d [number] Sets the debugging level to [number] - turns up or down the amount of things that are printed. Practical range: 0 - 10 Configuration Option: debuglevel -e [number] Sets the error level to [number] Practical range 0 - 10. 0 means print only critical errors about which you must be told. 1 means print all errors, even ones that are not overly important. 1+ means print more errors (if any) -e 0 is good for cron jobs. Configuration Option: errorlevel -R [time in minutes] Sets the maximum amount of time yum will wait before performing a command - it randomizes over the time. -C Tells yum to run entirely from cache - does not download or update any headers unless it has to to perform the requested action. --version Reports the yum version number and exits. --installroot=root Specifies an alternative installroot, relative to which all packages will be installed. Configuration Option: installroot --enablerepo=repoidglob Enables specific repositories by id or glob that have been dis- abled in the configuration file using the enabled=0 option. Configuration Option: enabled --disablerepo=repoidglob Disables specific repositories by id or glob. Configuration Option: enabled --obsoletes This option only has affect for an update, it enables yum ´s obsoletes processing logic. For more information see the update command above. Configuration Option: obsoletes --exclude=package Exclude a specific package by name or glob from updates on all repositories. Configuration Option: exclude --noplugins Run with all plugins disabled. Configuration Option: plugins
LIST OPTIONS
The following are the ways which you can invoke yum in list mode. Note that all list commands include information on the version of the pack- age. yum list [all | regexp1] [regexp2] [...] List all available and installed packages. yum list available [regexp1] [...] List all packages in the yum repositories available to be installed. yum list updates [regexp1] [...] List all packages with updates available in the yum reposito- ries. yum list installed [regexp1] [...] List the packages specified by args . If an argument does not match the name of an available package, it is assumed to be a shell-style glob and any matches are printed. yum list extras [regexp1] [...] List the packages installed on the system that are not available in any yum repository listed in the config file. yum list obsoletes [regexp1] [...] List the packages installed on the system that are obsoleted by packages in any yum repository listed in the config file. yum list recent List packages recently added into the repositories. Specifying package names All the list options mentioned above take file-glob-syntax wild- cards or package names as arguments, for example yum list avail- able foo* will list all available packages that match foo*.
CLEAN OPTIONS
The following are the ways which you can invoke yum in clean mode. yum clean packages Eliminate any cached packages from the system. Note that pack- ages are not automatically deleted after they are downloaded. yum clean headers Eliminate all of the files which yum uses to determine the remote availability of packages. Using this option will force yum to download all the headers the next time it is run. yum clean all Runs yum clean packages and yum clean headers as above.
发表评论
-
linux网络管理
2011-05-07 10:57 1675一、IP配置 1、 #/sbin/ifconfig ... -
运用logrotate维护你的日志文件
2010-08-28 11:46 1453在linux下面做应用服务器的兄弟可能都遇到过这些问 ... -
在CentOS、REDHAT系统下做一个开机自启动的脚本
2009-12-25 10:01 5296附,在Redhat或者CentOS里 ... -
RAID磁盘阵介绍及RAID5数据恢复
2009-12-03 12:23 3079RAID磁盘阵介绍及RAID5数据恢复 ... -
WIN下安装VNC实现对CENTOS的远程控制
2009-12-02 12:59 3453VNC,全称为Virtual Network ... -
ftp及相关的操作命令
2009-11-16 16:37 1362使用ftp命令进行远程文 ... -
svn server部署小记
2009-10-31 13:11 1241今天部署了一下SVN 服务器,开始我是按照RUBY COOKB ... -
centos 网络相关
2009-10-11 14:40 2119新安装完CentOS Linux,发现配置 完apach ... -
linux crond 定时任务
2009-10-08 08:27 2969cron是一个linux下的 ... -
scp 远程传文件with port number
2009-10-02 13:03 1911最近工作项目江西服务器暴露出了被别人当肉鸡的危险,故加强了自己 ... -
ssh with authentication key generation
2009-09-23 11:14 1154现在要添加ssh的认证密钥免去每次ssh登录服务器要输入用户名 ... -
华思服务器一个奇怪问题的解决方法
2009-08-07 10:39 987When packaging an application o ... -
ssh 远程访问和传输文件
2009-08-06 18:01 3276OpenSSH OpenSSH 是 SSH (Secure ... -
利用crontab定制自己的定时任务
2009-08-06 01:21 7552命令简介 crontab-操作每个用户 ... -
安装oracle-sql-developer on ubuntu
2009-07-24 18:31 2407最近工作用到oracle数据库,但是总是看不到数据结构,所以找 ... -
linux高效的命令(find pgrep create_file )
2009-07-22 22:21 11681. 查找Java项目中,main ... -
linux查找进程 杀死进程
2009-07-22 22:12 3041今天在工作的时候遇到一个问题,就是我启动一个项目(script ... -
VIM快捷键大全
2009-07-22 21:56 3311前言 Vim是一个超级牛的编辑器,可以说是专为程序员设计的编 ... -
初步接触LINUX shell
2009-07-14 18:02 1152今天初步接触linux的内核脚本shell 如果用他来做点简 ... -
alias 来简写你常用的命令
2009-05-13 15:32 1107alias vncmybox=’ vncviewer adm ...
相关推荐
yum 命令找不到,快速安装yum centos-yumconf-4-4.5.noarch.rpm python-elementtree-1.2.6-5.el4.centos.x86_64.rpm python-sqlite-1.1.7-1.2.1.x86_64.rpm python-urlgrabber-2.9.8-2.noarch.rpm sqlite-3.3.6-2....
yum命令的使用总结不仅包括了基础的安装、更新、卸载和查询操作,还涉及到了网络配置、仓库管理以及错误处理等更高级的用法,是维护Linux系统软件包的重要工具。随着Linux系统在服务器和桌面领域的广泛应用,yum作为...
### Linux的yum命令详解 在Linux环境中,管理软件包是一项基本且重要的操作。Yum(Yellowdog Updater Modified)作为一款强大的包管理器,为RPM(Red Hat Package Manager)包提供了自动化处理的能力,简化了软件包...
linux中使用yum命令的要求: 1. 首先,确定虚拟机连接了iso文件。 然后,挂载光盘到系统目录。 [root@huangdaojin ~]# mount -o loop /dev/cdrom /mnt 2. [root@huangdaojin ~]# vim /etc/yum.repos.d/iso.repo ...
总结,Yum命令是Linux系统管理员日常工作中不可或缺的工具,它的强大之处在于自动化处理软件包的依赖关系,使得软件管理变得简单而高效。熟练掌握Yum的使用,能极大地提升系统维护效率,对于Linux系统的管理和优化...
### yum命令详解 #### YUM简介 YUM(Yellowdog Updater Modified)是Linux系统中的一个包管理器,主要用于处理RPM格式的软件包。它能够自动解决软件包之间的依赖关系,简化了用户安装、更新及卸载软件的过程。通过...
### YUM命令使用配置详解 #### 一、YUM简介 YUM(Yellowdog Updater Modified)是一款在Linux系统上非常流行的包管理器工具。它能够处理依赖关系,并且简化了RPM包的安装与升级过程。通过YUM,用户可以方便地安装...
### 使用yum命令安装gpm服务知识点详解 #### 一、YUM命令简介 YUM(Yellowdog Updater Modified)是一款在Linux系统上进行软件包管理的工具,它为用户提供了一个命令行工具,使得用户能够方便地对软件包进行安装、...
标题与描述:“Linux Yum命令详解” Yum(Yellowdog Updater, Modified)是Linux发行版如Fedora、Red Hat及SUSE等中常见的包管理工具。它通过shell脚本和RPM数据库来管理和更新软件包,使得在Linux环境下安装、升级...
本文将深入解析`yum`命令及其在网络配置中的应用。 一、`yum`命令基本用法 1. 安装软件包: 使用`yum install <package_name>`命令可以安装指定的软件包。例如,`yum install httpd`将安装Apache HTTP服务器。 2...
YUM(Yellowdog Updater, Modified)是基于RPM包管理的Linux系统中的一款软件包管理器,主要用于自动化...通过熟练掌握这些YUM命令,可以更高效地管理Linux系统的软件生命周期,确保系统保持最新的状态并避免软件冲突。
工作中,centos系统和redhat系统不小心删除了yum命令,yum命令就无法使用了,这个时候就很难安装yum了,安装必须要用yum的离线安装包,这是工作中遇到的问题,下面我这里给大家介绍一下安装方法。 这里面也有安装...
Linux RPM 和 YUM 命令详细教程 Linux RPM(Red Hat Package Manager)是一种软件包管理器,用于安装、卸载、升级和查询软件包。RPM 安装软件包时,需要执行检查软件包的依赖关系、检查软件包的冲突、解压软件包...
在本主题中,我们将深入探讨`yum`命令如何利用提供的软件仓库地址进行软件升级,以及这些仓库地址对Linux系统的重要性。 首先,`yum`命令依赖于软件仓库,也称为存储库,这些仓库通常是一个远程服务器,存储了大量...
Linux网络之yum仓库_yum 命令.mhtml
使用`rpm -qa | grep mysql`或`yum list installed | grep mysql`命令列出所有与MySQL相关的RPM包。 3. **解除RPM包依赖**: 在卸载MySQL之前,需要解除所有依赖关系。如果你安装的是MariaDB(MySQL的一个分支)...
详细介绍了RPM包管理-yum在线管理-yum命令CentOS中的IP 配置,网络yum 源。并在CentOSt6中进行了详细演示,并附有截图。
linux常用命令大全 Linux yum 命令 来源:https://www.runoob.com/linux/linux-yum.html