LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-09-2003, 02:43 PM   #1
Hano
Member
 
Registered: Sep 2001
Location: Venezuela, Caracas
Distribution: RedHat 9.0
Posts: 196

Rep: Reputation: 30
How do i install a rpm not being root?


Hi,

despite this question is probably silly, i really couldnt figure out all the --initdb, --rebuilddb and all those necromantic options that bring rpm

how can i install a rpm so its local only to my account?

first i tried this>

>rpm --dbpath /home/hano --root /home/hano --initdb

after that, i tried

$ rpm --root /home/hano -i gnome-vfs-devel-1.0.1-17.i386.rpm
error: cannot open Packages index using db3 - No such file or directory (2)
error: cannot open Packages database in /home/hano/var/lib/rpm
 
Old 09-09-2003, 02:51 PM   #2
carlywarly
Member
 
Registered: Feb 2003
Location: Sunny Southport, again.
Distribution: PCLinuxOS 0.93 and 0.92, Vector sometimes
Posts: 825

Rep: Reputation: 30
You could create a new group of which only you are a member, then allow access to only members of that group ie just you.
 
Old 09-09-2003, 03:03 PM   #3
Hano
Member
 
Registered: Sep 2001
Location: Venezuela, Caracas
Distribution: RedHat 9.0
Posts: 196

Original Poster
Rep: Reputation: 30
?????

what i get from having my own group?

besides, for that, first i should have administrator access in the first place, isnt it?
 
Old 09-09-2003, 08:03 PM   #4
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
this is quite a messy thing u want to do. go look from some RPM documentation. The .rpmmacros/.rpmc tips should give hints. You'll need to 'overried' predefined paths within the packages (but as i've mentioned - thi would be messy). Most of the packges u'll install wouldn't find some programs they need. It would just like redefing your '/' to be '/home/hano'.

good luck and post your findings here ifyou want.
 
Old 09-09-2003, 08:15 PM   #5
Hano
Member
 
Registered: Sep 2001
Location: Venezuela, Caracas
Distribution: RedHat 9.0
Posts: 196

Original Poster
Rep: Reputation: 30
let me guess...

hmm, let me guess; this is the reason why debian freaks say .deb is superior to .rpm , or they both stink equally at this particular task, .... which at first sight i thought it was totally trivial to do?

greets,

Last edited by Hano; 09-09-2003 at 08:18 PM.
 
Old 09-10-2003, 12:53 AM   #6
carlywarly
Member
 
Registered: Feb 2003
Location: Sunny Southport, again.
Distribution: PCLinuxOS 0.93 and 0.92, Vector sometimes
Posts: 825

Rep: Reputation: 30
Do I understand you correctly? You are trying to install a program on a system that you do not have the root password to? Why would you want to do that? Why don't you ask the sysadmin for permission?
 
Old 09-10-2003, 02:42 AM   #7
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
my guess is, if that's the case, it's not going to happen unless you figure out how to decipher and edit the predefined paths in an rpm since all the rpms i've ever installed go into some directory in "/". and like mentioned above, even if you did this, the program may still not work.

the only thing i can think of if you don't want to go that route is to get the source code and hopefully the author of the program will have a configure script in there where you can specify an install path with the --prefix flag.

Last edited by megaspaz; 09-10-2003 at 02:43 AM.
 
Old 09-10-2003, 05:28 AM   #8
Hano
Member
 
Registered: Sep 2001
Location: Venezuela, Caracas
Distribution: RedHat 9.0
Posts: 196

Original Poster
Rep: Reputation: 30
carlywarly asks:
Quote:
Do I understand you correctly? You are trying to install a program on a system that you do not have the root password to? Why would you want to do that? Why don't you ask the sysadmin for permission?
...trying to install a program on 'a' system no, only in my account (i thought i explained that part). Different to other popular OS, unix-like OSes like linux allow people to use its own account for security reasons, and the idea of it would be to use/install/run whatever on your account space without altering the whole system space

I just can't believethat .rpm are a administrator-only facility for installing apps.... thats absurd


About installing from source, the package im trying to install is gnome-vfs-devel for redhat 7.2 (corresponding to gnome-vfs 1.0.-17), mainly because its a dependency of the anjuta 0.1.9 (which is the latest version of anjuta that works in a gnome 1.2.0 enviroment)

... and i couldn't find a tarball for that package on ftp.gnome.org, all i could find was the really useful rpm

greets,

Last edited by Hano; 09-10-2003 at 05:31 AM.
 
  


Reply



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 i install rpm package as non-root user? parv Linux - Software 10 09-17-2004 10:46 PM
How do I force an older rpm to install over a newer rpm of wine onyx Linux - Software 4 02-20-2004 12:44 AM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 12:44 AM
Help : rpm dependency error when install video driver rpm ymdwxm Linux - Software 1 04-04-2003 04:55 PM
rpm broken for root? ubien Linux - General 1 01-23-2003 01:07 AM

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

All times are GMT -5. The time now is 05:23 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
Open Source Consulting | Domain Registration