mysql rpm包安装指定路径_安装rpm包时指定路径
1、安裝rpm包可以指定路徑,但是安裝包時(shí)它可能執(zhí)行一些內(nèi)置的命令。如果手動(dòng)指定路徑,可能造成部分功能失效
比如下面安裝jdk的rpm包。默認(rèn)安裝后它會(huì)創(chuàng)建個(gè)軟鏈接。下面就提示創(chuàng)建軟鏈接失敗了。但是不影響使用
[root@dawn-cobbler-1-1 /]# mkdir /tools
[root@dawn-cobbler-1-1 /]# cd /tools/
[root@dawn-cobbler-1-1 /tools]# mv /jdk-8u111-linux-x64.rpm .
[root@dawn-cobbler-1-1 /tools]# ls
jdk-8u111-linux-x64.rpm
[root@dawn-cobbler-1-1 /tools]# mkdir /app -p
[root@dawn-cobbler-1-1 /tools]# rpm -ivh --prefix=/app/ jdk-8u111-linux-x64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:jdk1.8.0_111-2000:1.8.0_111-fcs ################################# [100%]
Unpacking JAR files...
tools.jar...
plugin.jar...
javaws.jar...
deploy.jar...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
ln: failed to create symbolic link ‘/usr/java/jdk1.8.0_111’: No such file or directory
[root@dawn-cobbler-1-1 /tools]# cd /app/
[root@dawn-cobbler-1-1 /app]# ls
jdk1.8.0_111
[root@dawn-cobbler-1-1 /app]# cd jdk1.8.0_111/
[root@dawn-cobbler-1-1 /app/jdk1.8.0_111]# ls
bin db javafx-src.zip lib man release THIRDPARTYLICENSEREADME-JAVAFX.txt
COPYRIGHT include jre LICENSE README.html src.zip THIRDPARTYLICENSEREADME.txt
[root@dawn-cobbler-1-1 /app/jdk1.8.0_111]# du -sh *
728Kbin
4.0KCOPYRIGHT
5.7Mdb
200Kinclude
4.9Mjavafx-src.zip
179Mjre
117Mlib
4.0KLICENSE
2.0Mman
4.0KREADME.html
4.0Krelease
21Msrc.zip
108KTHIRDPARTYLICENSEREADME-JAVAFX.txt
176KTHIRDPARTYLICENSEREADME.txt
[root@dawn-cobbler-1-1 /app/jdk1.8.0_111]# du -sh
329M.
[root@dawn-cobbler-1-1 /app/jdk1.8.0_111]#
總結(jié)
以上是生活随笔為你收集整理的mysql rpm包安装指定路径_安装rpm包时指定路径的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 珠海小学计算机比赛,欢聚一堂 共叙佳话
- 下一篇: java sdp_[java,SDP]