`
085567
  • 浏览: 214116 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

rpm --prefix

阅读更多
[mysql@test922 ~]$ rpm --install --prefix linuxqq-v1.0.2-beta1.i386.rpm
error: linuxqq is not relocatable

经查找,可以使用下面的命令查看rpm包是否可以重定位,也就是安装到另一个目录。

# rpm -qpi linuxqq-v1.0.2-beta1.i386.rpm |head
Name        : linuxqq                      Relocations: (not relocatable)
Version     : v1.0.2                            Vendor: Tencent Inc.
Release     : beta1                         Build Date: 2009年01月05日 星期一 17时31分44秒
Install Date: (not installed)               Build Host: localhost.localdomain
Group       : Internet                      Source RPM: linuxqq-v1.0.2-beta1.src.rpm
Size        : 6346491                          License: Commercial
Signature   : (none)
Packager    : @Home
Summary     : QQ for Linux v1.0.2 Beta1
Description :


从结果看到
Relocations: (not relocatable)

是无法修改安装目录的,也就是不能重定位,只有去掉 --prefix参数了。
分享到:
评论

相关推荐

    ffmpeg版本的rpm,适用环境ky10、centos

    2、执行安装 rpm -ivh ffmpeg-6.0-1.el7.centos.x86_64.rpm --nodeps --force 3、安装完成后,目录在/usr/local/ffmpeg /usr/local/ffmpeg/bin/ffmpeg [root@localhost /usr/local/ffmpeg/bin]# ./ffmpeg ffmpeg ...

    gcc4.8.5离线安装rpm包含依赖

    ## 解压gcc ```bash tar -xvf gcc-rpms.tar.gz ``` ## rpm安装gcc ```bash ...Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=...

    python3.6.5.zip

    rpm -Uvh --force --nodeps *.rpm 2、首先进入到lib目录下,不然会缺失很多依赖,很麻烦的 rpm -Uvh --force --nodeps *.rpm 3、安装zlib-1.2.11.tar.gz 解压,进入目录后,执行 ./configure --prefix=/usr/...

    Nginx RPM 包定制制作

    ./configure --prefix=/application/nginx-1.6.3 --user=nginx --group=nginx --with-http_ssl_module --with-http_stub_status_module make make install ln -s /application/nginx-1.6.3/ /application/nginx...

    nginx1.13.9安装说明.zip

    rpm -Uvh --force --nodeps *.rpm 2、将libtool-2.4.2.tar.gz与pcre-8.35.tar.gz分别解压,进入文件夹 ./configure --prefix=/usr/local/对应路径名 make && make install 3、解压nginx-1.13.9.tar.gz,进入目录...

    opensshd6.6安装包

    #./configure --prefix=/usr/local/openssh --sysconfdir=/etc/ssh --with-pam --with-ssl-dir=/usr/local/openssl --with-md5-passwords --mandir=/usr/share/man --with-zlib=/usr/local/zlib # make && make ...

    python linux离线安装.rar

    进入 rpm 包,运行 yum localinstall *.rpm -y 解压python tar -xvf $base_dir/software/Python-3.7.3.tgz 进入Python-3.7.3目录 ./configure --prefix="/usr/local/Python-3.7.3" make && make install #删除原来的...

    LAMP简单配置方法

    mysql采用rpm方式安装 rpm -ivh MySQL-server-5.0.37-0.i386.rpm rpm -ivh MySQL-client-5.0.37-0.i386....#./configure --prefix=/usr/local/apache2 --sysconfdir=/etc/httpd --enable-module=so #make;make install

    ntp-4.2.8p13.tar.gz ntp最新升级工具包及方法

    2、/tmp/ntp-4.2.8p10/configure --prefix=/usr --bindir=/usr/sbin --sysconfdir=/etc --enable-linuxcaps --with-lineeditlibs=readline --enable-all-clocks --enable-parse-clocks --enable-clockctl ...

    openssl_2019-07-17.zip

    [root@localhost openssl-1.1.1c]# ./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl enable-ec_nistp_64_gcc_128 [root@localhost openssl-1.1.1c]# make && make install 时间有点久。 ...

    bashdb-4.2-0.7 配合centos7.3 bash-4.2.46版本编译通过

    [root]#rpm -ivh bash-4.2.46-20.el7_2.src.rpm [root]#cd $HOME/rpmbuild/SPECS [root]#rpmbuild -bp bash.spec 此时,源代码已经安装到了$HOME/rpmbuild/BUILD目录 c).移动bash的源代码到/usr/src [root]#cd $...

    nginx-1.18.0离线安装依赖包及过程

    ./configure --prefix=/opt/nginx-1.18.0 make make install cd /opt tar -czvf nginx-1.18.0.tar.gz nginx-1.18.0 cd /opt/nginx-1.18.0/sbin ./nginx -c conf/nginx.conf ./nginx -s stop

    制作PHP的RPM包详解及实例

    有时候为了方便源码包的安装,我们需要自己订制软件包的需求,我们会把一些源码包按照我们的需求来做成rpm包,当有了源码包就可以直接编译得到二进制安装包和其他任意包。spec file是制作rpm包最核心的部分,rpm包的...

    gateone部署文件

    it somewhere else just pass --prefix: python setup.py install --prefix=/usr/local To build an RPM package: python setup.py bdist_rpm # The .rpm will end up in the 'dist' directory To build a ...

    使用VLC1.0.5进行RTSP2TS转码

    rpm -hiv libdvbpsi-devel-0.1.7-1.el4.rf.i386.rpm 需要什么rpm可到http://apt.sw.be/redhat/el4/en/i386/rpmforge/RPMS/中下载 (三) 编译VLC 1. configure ./configure --prefix=/usr --enable-debug --disable-...

    linux下安装ImageMagick-6.5+JMagick -6.4 经测试成功的

    确认已经安装了zlib、freetype、libpng和jpeg-6b等lib的开发包,可以用rpm -aq查询,如果没有的请先安装。 /*------------------- 观察配置后给出来的支持图形格式,看看该图形格式支持是否是yes,如果不是,那么...

    AIX基本环境搭建.doc

    gcc V4.0.0 for AIX V5.3 (gcc-4.0.0-1.aix5.3.ppc.rpm) gcc-c++ V4.0.0 for AIX V5.3 (gcc-cplusplus-4.0.0-1.aix5.3.ppc.rpm) libgcc V4.0.0 for AIX V5.3 (libgcc-4.0.0-1.aix5.3.ppc.rpm) libstdc++ V4.0.0 for ...

    修复bash漏洞的4.3.30源码包

    鉴于目前绝大部分服务器因为没有注册的yum或者因不通外网等问题导致无法使用yum update -y bash 命令进行漏洞修复,如采用RPM包升级修复漏洞又存在各服务器系统有的是32位有的是64位或者bash的版本不一样导致需要...

    foomatic-filters-4.0.6-mac-os-11:foomatic-rip的Mac OS 11修补版本,min12xxw所需

    使用--prefix = / usr / local对其进行配置。 它适用于Apple Silicon。如何安装用自制软件安装ghostscript ./configure --prefix = / usr / local / 制作sudo make install(不要担心最后的错误) 确保/usr/local/...

    安装 Nginx

    [root@db nginx]# ./configure --prefix=/usr/local/nginx [root@db nginx-1.8.1]# make [root@db nginx-1.8.1]# make install 开放防火墙的这个端口 vi /etc/sysconfig/iptables 添加:-A INPUT -m state --state ...

Global site tag (gtag.js) - Google Analytics