error: package jenkins is not relocatable

66 views
Skip to first unread message

Kamal Ahmed

unread,
Apr 15, 2016, 9:52:53 AM4/15/16
to Jenkins Users
I am trying to use yum, or rpm to install ( by default ) jenkins @ /opt/jenkins
and not /var/lib/jenkins. But when i try to :

$rpm --prefix=/opt/jenkins -ivh jenkins-1.656-1.1.noarch.rpm
error: package jenkins is not relocatable

I get error, is there a way to easily install jenkins in other locations ? I read on stackflow, that someone installed it on /var/lib and then manually moved all directories to custom location, and
pointed env variables to the new location, but that seems too much manual work and prone to error, 

Jenkins being used by millions i would assume have the BASIC ability to let the user choose a location, plus keeping the easily upgradable option working, right ?

Anyone having a solution please post

Thanks,
-Kamal.
Reply all
Reply to author
Forward
0 new messages