CentOS6.4minimal版安装JDK_Maven_Subversion

分类:CentOS教程 阅读:78950 次

  1. /**
  2. *@see-------------------------------------------------------------------------------------------------
  3. *@see关于rpm的安装路径
  4. *@seerpm包通常都有默认的安装路径,但也有办法更新它的默认安装路径,只不过不是所有的rpm都允许安装到其它路径
  5. *@see下面以CollabNetSubversion-client-1.8.13-1.x86_64.rpm和jdk-6u45-linux-amd64.rpm为例
  6. *@see-------------------------------------------------------------------------------------------------
  7. *@see[Jadyer@localhostapp]$rpm-qpiCollabNetSubversion-client-1.8.13-1.x86_64.rpm
  8. *@seewarning:CollabNetSubversion-client-1.8.13-1.x86_64.rpm:HeaderV3DSA/SHA1Signature,keyID35bcca43:NOKEY
  9. *@seeName:CollabNetSubversion-clientRelocations:(notrelocatable)
  10. *@seeVersion:1.8.13Vendor:CollabNet
  11. *@seeRelease:1BuildDate:Mon23Mar201502:49:36AMEDT
  12. *@seeInstallDate:(notinstalled)BuildHost:cu128.cloud.maa.collab.net
  13. *@seeGroup:Utilities/SystemSourceRPM:CollabNetSubversion-client-1.8.13-1.src.rpm
  14. *@seeSize:39281894License:Proprietary
  15. *@seeSignature:DSA/SHA1,Mon23Mar201502:49:51AMEDT,KeyID80233a5a35bcca43
  16. *@seePackager:AlexanderThomas(AT)<alexander@collab.net>
  17. *@seeURL:http://open.collab.net
  18. *@seeSummary:AConcurrentVersioningsystemsimilartobutbetterthanCVS.
  19. *@seeDescription:
  20. *@seeCollabNetSubversionclientisafreedownloadofopen-sourceSubversion,
  21. *@seecompiledandtestedbyCollabNet.FormoreinformationaboutCollabNet
  22. *@seeSubversion,visittheCollabNetcommunityathttp://open.collab.net.
  23. *@see-------------------------------------------------------------------------------------------------
  24. *@see[Jadyer@localhostapp]$rpm-qpijdk-6u45-linux-amd64.rpm
  25. *@seeName:jdkRelocations:/usr/java
  26. *@seeVersion:1.6.0_45Vendor:Oracleand/oritsaffiliates.
  27. *@seeRelease:fcsBuildDate:Tue26Mar201307:54:12PMEDT
  28. *@seeInstallDate:(notinstalled)BuildHost:jb6-lin-amd64.sfbay.sun.com
  29. *@seeGroup:Development/ToolsSourceRPM:jdk-1.6.0_45-fcs.src.rpm
  30. *@seeSize:127250396License:Copyright(c)2011,Oracleand/oritsaffiliates.Allrightsreserved.Alsounderotherlicense(s)asshownattheDescriptionfield.
  31. *@seeSignature:(none)
  32. *@seePackager:JavaSoftware<jre-comments@java.sun.com>
  33. *@seeURL:http://www.oracle.com/technetwork/java/javase/overview/index.html
  34. *@seeSummary:Java(TM)PlatformStandardEditionDevelopmentKit
  35. *@seeDescription:
  36. *@seeTheJavaPlatformStandardEditionDevelopmentKit(JDK)includesboth
  37. *@seetheruntimeenvironment(Javavirtualmachine,theJavaplatformclasses
  38. *@seeandsupportingfiles)anddevelopmenttools(compilers,debuggers,
  39. *@seetoollibrariesandothertools).
  40. *@see
  41. *@seeTheJDKisadevelopmentenvironmentforbuildingapplications,applets
  42. *@seeandcomponentsthatcanbedeployedwiththeJavaPlatformStandard
  43. *@seeEditionRuntimeEnvironment.
  44. *@see-------------------------------------------------------------------------------------------------
  45. *@see通过二者的Relocations参数,我们可以看到Subversion是不允许重定位的,而jdk则允许
  46. *@see所以,Subversion只能安装在默认路径下,而jdk则可以修改其默认安装路径/usr/java为其它路径,方法如下
  47. *@see[Jadyer@localhostapp]$rpm-ivh--badreloc--relocate/usr/java=/app/jdk1.6.0_45jdk-6u45-linux-amd64.rpm
  48. *@seebadreloc是将文件强制安装到指定位置
  49. *@seerelocate是将文件从oldpath安装到newpath
  50. *@see-------------------------------------------------------------------------------------------------
  51. *@create2015-5-27下午7:08:43
  52. *@author玄玉<http://blog.csdn.net/jadyer>
  53. */