龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 操作系统 > LINUX系统 >

rpm命令手册和查看rpm安装包的安装路径的方法(2)

时间:2014-05-18 03:25来源:网络整理 作者:网络 点击:
分享到:
Q rpm安装时已有的包版本过高怎么办? A 有时由于安装的软件包太老,而系统中相关的软件包版本比较新,所以可能需要 安装的包依赖的一些文件会找不到

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包的文件名

详细选项:

精彩图集

赞助商链接