本节所讲内容:rpm软件包管理yum安装软件包源码编译安装软件包安装srpm软件包一、rpm包管理1rpm基础作用:管理rpm包语法:rpm包名[rootlocalhost~]#rpm--help-i,--installinstallpackage(s)-v,--verbose详细providemoredetailedoutput-h,--hashprinthashmarksaspackageinstalls(goodwith-v)#安装时打印散列标记#号1.11.1挂载光盘[rootxuegod63Desktop]#mount/dev/cdrom/mnt/[rootxuegod63Desktop]#mount/dev/sr0/opt/mount:blockdevice/dev/sr0iswrite-protected,mountingread-only1.2查看包个数[rootxuegod63Desktop]#ls/mnt/Packages/
wc-l.3Linux下软件包命名规则zsh-4.3.10-4.1.el6.x86_64.rpmzsh:包名4.3.10-4.1:版本号el6:红帽系列版本x86_64:cpu架构1.4安装rpm软件[root
localhost~]#rpm-ivh/mnt/Packages/lrzsz-0.12.20-27.1.el6.x86_64.rpm[rootlocalhost~]#rpm-ivh--nodeps/mnt/Packages/mysql-server-5.1.52-1.el6_0.1.x86_64.rpm#忽略依赖关系2安装时,解决依赖关系方法1:直接找以perl-DBD-MySQL开头的包方法2:找关键字[rootxuegod63Packages]#ls*perl-DBD-MySQL*方法3:上rpm包相关的网站上找
转载请注明:http://www.aierlanlan.com/tzrz/8096.html