rpm命令手册和查看rpm安装包的安装路径的方法(2)
Q rpm安装时已有的包版本过高怎么办?
A 有时由于安装的软件包太老,而系统中相关的软件包版本比较新,所以可能需要
安装的包依赖的一些文件会找不到。这时有两种解决办法,
第一是在系统文件中找到和需要的文件功能相同或相似的文件,做一个符号链接到
需要的目录下。
以下是我知道的在Linux下的rpm软件包安装时如何指定安装路径的方法,不少是从网上学来的。请大家多多指教啊。
以下的options是可完成你想方式.
--prefix <path>
This sets the installation prefix to <path> for
relocatable packages.
--relocate <oldpath>=<newpath>
For relocatable packages, translates the files that
would be put in <oldpath> to <newpath>.
--badreloc
To be used in conjunction with --relocate, this
forces the relocation even if the package isn't
relocatable.
--noorder
Don't reorder the packages for an install. The list
of packages would normally be reordered to satisfy
dependancies.
RPM命令手册
一、安装
命令格式:
rpm -i ( or --install) options file1.rpm ... fileN.rpm
参数:
file1.rpm ... fileN.rpm 将要安装的RPM包的文件名
详细选项:
- 上一篇:linux配置防火墙iptables实例分享
- 下一篇:linux磁盘分区详解