LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-17-2004, 12:24 PM   #1
parv
Member
 
Registered: Jul 2004
Location: USA
Distribution: Mint, Scientifc Linux, Ubuntu
Posts: 180

Rep: Reputation: 30
can i install rpm package as non-root user?


i want to install some older version packages as a non-root user.
how can i do that? i tried rpm -ivh but failed and got this error:
"can't create transaction lock"
also tried to use --prefix, also failed because of this:
package is not relocatable

so what shall I do now since the non-root user really needs the package
in his own directory/path?

thanks.
 
Old 09-17-2004, 01:07 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi

the error u r getting is bcause of a no root user user is tryoinh to perfporm that operations

i think u ned to be root to install any package or delete

after all what are administrators for???

regards
 
Old 09-17-2004, 01:20 PM   #3
PBSchmidt
Member
 
Registered: Aug 2004
Location: Aachen, Germany
Distribution: Debian Sarge
Posts: 129

Rep: Reputation: 15
sure you gotta be root to install anything. Try "su", if you got the root permission on you box, or "sudo" if your are elegible sudore.

My 2 cent. HTH, Peter
 
Old 09-17-2004, 01:55 PM   #4
parv
Member
 
Registered: Jul 2004
Location: USA
Distribution: Mint, Scientifc Linux, Ubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
Post

basically, i want to keep the newer version while still be able to use
an older version for special needs.
i am the owner of my system
 
Old 09-17-2004, 02:31 PM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi
for that i think u should try out

rpm -ivh abc.rpm --prefix=/home/test

and to run the other version of the program

run like /home/test/bin/abc

regards
 
Old 09-17-2004, 02:37 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
Quote:
Originally posted by masand
hi
for that i think u should try out

rpm -ivh abc.rpm --prefix=/home/test

and to run the other version of the program

run like /home/test/bin/abc

regards
I'm not a rpm-expert by any means, but how
does a different location bypass version conflicts
in terms of the rpm database?


Cheers,
Tink
 
Old 09-17-2004, 02:49 PM   #7
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Best solution in my opinion is to install from source with the configure option "--prefix=/opt/application_name". It won't touch anything else other than personal configuration files.
 
Old 09-17-2004, 02:57 PM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

i misssed one thing there

we may have to use --force option also the p[ackage needs to be reloacatable to be installed to a different location

i am not a expert at this ,and haven't tried this so frequently

regards
 
Old 09-17-2004, 04:02 PM   #9
parv
Member
 
Registered: Jul 2004
Location: USA
Distribution: Mint, Scientifc Linux, Ubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
as i have mentioned at first, --prefix did not work.
and being a non-root user, i do not think a force option can do anything better.
 
Old 09-17-2004, 04:14 PM   #10
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi
that's what i told u that --prefix works only if the package is relocatable

and u will require force simce u hvae to ignore the conflict errors/install the pakage inspite of conflicts

regards
 
Old 09-17-2004, 11:46 PM   #11
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
You could always (source) try a different (source) method of installing the (source) application. For example, you could...hmmm...i dunno...try (source) maybe installing from source.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't install a RPM package mobyuk Linux - Newbie 3 12-11-2008 06:24 AM
how to install rpm package manager? :))) sawran Linux - Software 3 04-18-2005 08:04 AM
I can't install with RPM package. PICOspark Linux - Newbie 8 04-06-2005 07:40 AM
install rpm package from other distributions xround Red Hat 5 08-31-2004 02:54 PM
Install package with RPM nobyone Linux - Newbie 4 04-01-2004 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration