yum: Yellowdog Updater Modified
- yum [options] [command] [package ...]
yum search lrzsz
,搜索 rz/sz 命令包 lrzsz,lrz 和 lsz,是 rz 和 sz 的替代版;
- 以安装 man 命令为例
yum install man -y
which man
man man
man yum
yum search tree /* you should see it in the search list */
yum install tree /* tree 命令安装上方便些,也可以使用 find 命令自定义一个 tree */
-y, --assumeyes:Assume yes; assume that the answer to any question which would be asked is yes.
-
yum info <package>
如:yum info cmake
yum search <package>
yum install <package>
-
yum repolist
:查看库列表(repo id, repo name, status(包个数))
yum install epel-release
- [man]
man: format and display the on-line manual pages。常见的 manual sections 编号:1 表示 User Commands,5 表示 File Formats and Conventions,8 表示 System Administration tools and Deamons。
比如:less(1), man.config(5),表示让你查看 less 命令帮助,man.config 文件帮助。
man [section] name 查看指定 section 编号的 name 帮助。
- install build tools
有源码很好,可是需要编译安装,前提是首先安装有编译和安装工具(compile and install)。
yum install gcc-c++ make 或者
yum groupinstall 'Development Tools'
-
yum search sysstat
The iostat
command is used to check disk input/output statistics in real time. The iostat utility is installed with yum via the sysstat
package.
- rpm & yum
[RPM and YUM package management][];
[Package Manager][];
[Difference Between YUM and RPM][];
RPM is a package manager while YUM is a frontend that can be used with RPM.
The RPM package manager is unable to track dependencies while YUM can.
- rpm -qa
-q, --query 查询;
-a, --all;
yum grouplist
- yum grouplist | grep -i development
查看 Development tools 是否已安装
- # yum groupinstall Development tools
-
bybacc 和 flex 在 Development tools 里面都已包含,无需单独安装。
- yum groupinfo Development tools
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile
Group: Development tools
Description: A basic development environment.
Mandatory Packages:
autoconf
automake
binutils
bison
flex
gcc
gcc-c++
gettext
libtool
make
patch
pkgconfig
redhat-rpm-config
rpm-build
Default Packages:
byacc
cscope
ctags
cvs
diffstat
doxygen
elfutils
gcc-gfortran
git
indent
intltool
patchutils
rcs
subversion
swig
systemtap
Optional Packages:
ElectricFence
PyYAML
ant
babel
bzr
chrpath
cmake
compat-gcc-34
compat-gcc-34-c++
compat-gcc-34-g77
cvs-inetd
dejagnu
expect
gcc-gnat
gcc-java
gcc-objc
gcc-objc++
imake
jpackage-utils
kdewebdev
ksc
libstdc++-docs
mercurial
mod_dav_svn
nasm
perltidy
python-docs
python-requests
python-six
rpmdevtools
rpmlint
systemtap-sdt-devel
systemtap-server
网友评论