Home > rpm relocate > error package httpd is not relocatable

Error Package Httpd Is Not Relocatable

Contents

Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this

How To Make Rpm Package Relocatable

site About Us Learn more about Stack Overflow the company Business Learn more check if rpm is relocatable about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server

Rpm Relocate Example

Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer rpm relocate command The best answers are voted up and rise to the top Why are some RPM's “not relocatable”? up vote 2 down vote favorite An RPM is relocatable if you can install it like this: rpm -ivh --prefix=/path/to/non/default/dir package-name.rpm Without getting the following error message: error: package package-name is not relocatable This link states: RPM has the ability to give users some latitude in deciding where rpm: relocations must contain a = packages are to be installed on their systems. However, package builders must first design their packages to give users this freedom. In other words, an RPM package that can be installed into a different directory is said to be relocatable. Please note that not all RPM packages can be installed into another directory. It however does not explain why a package builder would not want to permit users the freedom to decide where to install the package. So, why is it a good idea to make a particular package not relocatable? redhat rpm share|improve this question asked Apr 30 at 5:07 Matthew Moisen 1116 Best option is Michael's suggestion to get your admin to do it. However, you might be able to rebuild from the source package and specify an alternate install point (e.g. /home/matthew/whatever as the top prefix directory). Or, you might be able to extract the files manually like a tarball. I just answered a similar question here: serverfault.com/questions/772073/install-rsync-3-1-1-on-syst‌emd/… This can work if the package can work relative even if it's not "relocatable" (e.g. uses relative symlinks like ../../blah). It's more work, but if your admin refuses ...

& Answers This forum is closed for new posts. Please post beginner questions to learn

Rpm Relocate Option

unix and learn linux in this forum UNIX for Beginners Questions rpm: --prefix may only be used when installing new packages & Answers Search Forums Show Threads Show Posts Tag Search Advanced Search Unanswered Threads Find

Rpm Prefix Tag[

All Thanked Posts Go to Page... linux operating commands and unix operating commands Can't install rpm package with --prefix in new path.Error: package is not relocatable http://serverfault.com/questions/773984/why-are-some-rpms-not-relocatable UNIX for Dummies Questions & Answers Tags error, install, location, prefix, rpm Thread Tools Search this Thread Display Modes #1 03-31-2012 g_p Registered User Join Date: Feb 2011 Last Activity: 31 March 2012, 7:29 PM EDT Posts: 7 Thanks: 1 Thanked 0 Times in 0 Posts Can't install rpm http://www.unix.com/unix-for-dummies-questions-and-answers/180874-cant-install-rpm-package-prefix-new-path-error-package-not-relocatable.html package with --prefix in new path.Error: package is not relocatable Hello, i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm" in /usr/local/ directory. I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't. I did: 1st try: Didn't work Code: sudo rpm -i --prefix=/usr/local/hadoop-0.20.205 /usr/local/hadoop-0.20.205.0-1.amd64.rpm error: package hadoop is not relocatable 2nd try: Didn't work Code: sudo rpm -i /usr/local/hadoop-0.20.205.0-1.amd64.rpm --prefix /usr/local/hadoop-0.20.205 error: package hadoop is not relocatable What can i do in order to install the rpm package in a new location? Thanks, in advance Remove advertisements Sponsored Links g_p View Public Profile Find all posts by g_p #2 04-01-2012 jim mcnamara ...@... Join Date: Feb 2004 Last Activity: 13 October 2016, 10:00 PM EDT Location: NM Posts: 10,834 Thanks: 449 Thanked 970 Times in 901 Posts It doesn't like the -- in the directory name, I believe. Do one of these 1. pick another name like "prefix" with no dashe

while installing mod_ssl General support questions including new installations Post Reply Print view Search Advanced search 7 http://www.centos.org/forums/viewtopic.php?t=18611 posts • Page 1 of 1 wonka68 Posts: 4 Joined: 2013/07/18 20:55:22 Location: Warrington, UK Error in package dependency while installing mod_ssl Quote Postby wonka68 » 2013/07/18 http://stackoverflow.com/questions/36301274/how-to-make-relocatable-rpm 21:09:26 Hi,I'm responsible for a CentOS 5 server running an apache website. We now have to upgrade it to use SSL, so I tried installing mod_ssl through rpm relocate yum. Unfortunately, yum throws an error when trying to do this.It seems mod_ssl 2.2.3 is available, but apache is at v2.2.8, and needs to be v2.2.3. If I have to reinstall apache, I wouldn't know where to start - I'm new to Linux. Obviously I'm worried about losing the website (how would I back error package httpd it up?).My /etc/redhat-release file contains: CentOS release 5.9 (Final)Below is a dump of the yum output, and a repolist. What should I do to get mod_ssl installed? (bear in mind I'm a newbie :-)----------------------------------------------------------------------[root@LinuxDemo ~]# yum install mod_sslLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirror.simwood.com * extras: mirror.simwood.com * updates: mirror.for.me.ukSetting up Install ProcessResolving Dependencies--> Running transaction check---> Package mod_ssl.x86_64 1:2.2.3-81.el5.centos set to be updated--> Processing Dependency: httpd = 2.2.3-81.el5.centos for package: 1:mod_ssl-2.2.3-81.el5.centos.x86_64--> Processing Dependency: libdistcache.so.1()(64bit) for package: 1:mod_ssl-2.2.3-81.el5.centos.x86_64--> Processing Dependency: libnal.so.1()(64bit) for package: 1:mod_ssl-2.2.3-81.el5.centos.x86_64--> Running transaction check---> Package distcache.x86_64 0:1.4.5-14.1 set to be updated---> Package mod_ssl.x86_64 1:2.2.3-81.el5.centos set to be updated--> Processing Dependency: httpd = 2.2.3-81.el5.centos for package: 1:mod_ssl-2.2.3-81.el5.centos.x86_64--> Finished Dependency ResolutionError: Package: 1:mod_ssl-2.2.3-81.el5.centos.x86_64 (updates) Requires: httpd = 2.2.3-81.el5.centos Installed: httpd-2.2.8-1.el5s2.centos.x86_64 (installed) httpd = 2.2.8-1.el5s2.centos Available: httpd-2.2.3-74.el5.centos.x86_64 (base) httpd = 2.2.3-74.el5.centos Available: httpd-2.2.3-76.el5.centos.x86_64 (updates) httpd = 2.2.3-76.el5.centos Available: httpd-2.2.3-78.el5.centos.x86_64 (updates) httpd = 2.2.3-78.el5.centos Available: httpd-2.2.3-81.el5.centos.x86_64 (updates) httpd = 2.2.3-81.el5.centos You could try using --skip-broken to work

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How To make relocatable rpm? up vote 1 down vote favorite I have java application with pom.xml. I am making rpm package with prefixes tags . When I am querying on prefix tags of rpm : sudo rpm -qp --queryformat "%{prefixes}\n" java-hbase-processor-1.0-SNAPSHOT20160330060627.noarch.rpm I got ==> /var IF I run following command : rpm -qi java-hbase-processor | grep Relocations I got : Relocations : /opt /tmp Relocations : /var /tmp All above shows that rpm is relocatable . But if run install command sudo rpm -i --prefix=/home/sohanvir/ java-hbase-processor-1.0-SNAPSHOT20160330060627.noarch.rpm It will give error with message: error: package java-hbase-processor is not relocatable Thanks in advance . java maven rpm share|improve this question asked Mar 30 at 6:27 Sohi 488 Do you need to extract only some files ? –Lefteris Bab Mar 30 at 6:57 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote According to RPM.org: By default, RPM will install a relocatable package in the prefix directory listed in the spec file. You can override this on the RPM install command line with "--prefix

". For example, if the package in question were going to be installed in "/opt" but you don't have enough disk space there (and it is a relocatable package), you could install it "--prefix /usr/opt". If there is more then one Prefix you may relocate each prefix separate

 

Related content

No related pages.