转自:https://blog.youkuaiyun.com/JackLiu16/article/details/79197552
查看:
easwy:~$ rpm -qpl ext3grep-0.10.0-1.el5.rf.i386.rpm
/usr/bin/ext3grep
/usr/share/doc/ext3grep-0.10.0
/usr/share/doc/ext3grep-0.10.0/INSTALL
/usr/share/doc/ext3grep-0.10.0/LICENSE.GPL2
/usr/share/doc/ext3grep-0.10.0/NEWS
/usr/share/doc/ext3grep-0.10.0/README
改变:
rpm -i --relocate /usr/bin=/home/easwy/bin --relocate /usr/share/doc=/home/easwy/doc ext3grep-0.10.0-1.el5.rf.i386.rpm
现在,ext3grep就会被安装到/home/easwy/bin目录中了。
以上就是Linux修改RPM安装目录的方法了,如果你没有root权限,无法把RPM安装在默认目录下,就可以用这个方法修改RPM安装目录。
RPM默认安装路径:
/etc 一些设置文件放置的目录如/etc/crontab
/usr/bin 一些可执行文件
/usr/lib 一些程序使用的动态函数库
/usr/share/doc 一些基本的软件使用手册与帮助文档
/usr/share/man 一些man page文件
---------------------
作者:JackLiu16
来源:优快云
原文:https://blog.youkuaiyun.com/JackLiu16/article/details/79197552
版权声明:本文为博主原创文章,转载请附上博文链接!