LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-13-2009, 02:59 AM   #1
zion_rulz
LQ Newbie
 
Registered: May 2009
Location: India
Distribution: kubuntu-8.04.2
Posts: 12

Rep: Reputation: 0
Error while running RPM command in Fedora 10


I have just started using Linux & have installed Fedora 10 (I am loving it). I am getting an error while running rpm command as a normal user, while am successful as a su.

[Parizaa@9005LTPGEN0142 Download]$ rpm -ihv AdbeRdr9.1.0-1_i486linux_enu.rpm
error: can't create transaction lock on /var/lib/rpm/__db.000 (Permission denied)

How to get rid of this; I don't want to install applications with su. Any suggestions/help will be much appreciated.
 
Old 05-13-2009, 03:01 AM   #2
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
You cannot install rpm's without root privilages.
 
Old 05-13-2009, 03:15 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
As far as I know, you can't install packages without being root. The installed files are copied into system directories and the rpm database is updated as well. So you cannot change this behaviour, unless you mess up all the permissions of the directory tree.

Anyway, there is a chance you can extract the files from the RPM and install (that is copy) them somewhere into your home directory:
Code:
$ rpm2cpio AdbeRdr9.1.0-1_i486linux_enu.rpm | cpio -dimv
Then add the directory containing the newly installed executable to the PATH, being sure it comes before the directory where the current acroread executable is installed (usually /usr/bin). This is because the system look for executables (commands) inside the directories specified in PATH, following the order as they appear. The first executable encountered is that one executed.
Code:
$ export PATH=$HOME/opt/Adobe/Reader9/bin:$PATH

Last edited by colucix; 05-13-2009 at 04:55 AM. Reason: corrected last command line
 
Old 05-13-2009, 04:37 AM   #4
zion_rulz
LQ Newbie
 
Registered: May 2009
Location: India
Distribution: kubuntu-8.04.2
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks. Cheers!
 
  


Reply

Tags
fedora, rpm



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running rpm command cnupeddi Programming 3 03-12-2007 10:16 AM
Error message with RPM, running alien on ubuntu Brian5 Ubuntu 4 01-10-2007 07:07 AM
rpm command giving kernel error. dhruvypatel Mandriva 3 02-20-2006 10:59 PM
Always error when running an rpm rsumbeling Linux - Software 2 11-13-2004 10:50 AM
rpm error-> patch: command not found Bosnja Linux - Software 5 01-30-2004 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:00 AM.

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