首页 > 系统 > Linux > 正文

管理rpm包安装缷载与查询

2024-08-28 00:20:09
字体:
来源:转载
供稿:网友
本文是关于管理rpm包(RedHat Package Management)的常用命令,测试平台:FC5,i686

一、安装.rpm包
# rpm -i[vh] your-package

二、安装.src.rpm包
Method 1:
# rpm -i[vh] your-package.src.rpm
# cd /usr/src/redhat/SPECS
# uname -m
i686
# rpmbuild -bp [--target i686] your-package.specs
# cd /usr/src/redhat/BUILD/your-package/
# ./configure
# make
# make install

Method 2:
# rpm -i[vh] your-package.src.rpm
# cd /usr/src/redhat/SPECS
# rpmbuild -bb [--target i686] your-package.specs
# cd /usr/src/redhat/RPM/i686
# ls
your-package.rpm [others]
# rpm -ivh your-package
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表