LinuxQuestions.org
Review your favorite Linux distribution.
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 10-19-2007, 01:58 AM   #1
jainforall
LQ Newbie
 
Registered: Oct 2007
Location: India
Distribution: Fedora
Posts: 6

Rep: Reputation: 0
Unhappy Can I run yum without root privileges???


Hello everybody,

I use fedora in office, but i don't have its root password.
I want to install opera web browser. But when i try to run rpm file, it gives dependency error [libstdc++.so.5] is needed.

I tried to use yum
yum install libstdc++.so.5

but it gives error that root privileges are required.

Can I install software using yum from general (non root) user in local directory?

Also can I install rpm packages in local directory using rpm --install command?

Please help me.
 
Old 10-19-2007, 02:10 AM   #2
wanghao
Member
 
Registered: Mar 2007
Distribution: centos
Posts: 126

Rep: Reputation: 15
The answer is no ,during the installtion the its need to write
to the root privileged fiel or 'dir'.so give up .
 
Old 10-19-2007, 03:26 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Maybe, but not using yum. You may be able to install opera if you create your own $HOME/usr/bin and $HOME/usr/lib directories. You will need to prefix the command with LD_LIBRARY_PATH=$HOME/usr/lib/ if the package uses /usr/lib. Also add $HOME/usr/bin to your PATH variable.

Instead of installing opera normally using yum or rpm, extract the files with unrar or midnight commander (mc).

You can examine an rpm file before you install it with "rpm -qlp <filename>". There could be a problem if opera needs to read a config file in /etc/, but usually a program will look for a config file in your home directory and use that if it is present.

I can't guarantee this will work. A lot depends on how the program is designed. Some programs like Sun Office have installers that can be install the program for an indivual user.

Good Luck.

Last edited by jschiwal; 10-19-2007 at 03:30 AM.
 
Old 10-22-2007, 12:18 AM   #4
jainforall
LQ Newbie
 
Registered: Oct 2007
Location: India
Distribution: Fedora
Posts: 6

Original Poster
Rep: Reputation: 0
Question Problem is library

Thanks Jschiwal,

With the help of your method I am able to install programs in my home directory. And they are working fine.

But problem with opera is that it is dependent on library "libstdc++.so.5" and this is not in my system. I don't know how to install it without root privileges.
I am try with "yum" but it needs root password.
Can I install this library in my home directory and set some paths to give its address????



Quote:
Originally Posted by jschiwal View Post
Maybe, but not using yum. You may be able to install opera if you create your own $HOME/usr/bin and $HOME/usr/lib directories. You will need to prefix the command with LD_LIBRARY_PATH=$HOME/usr/lib/ if the package uses /usr/lib. Also add $HOME/usr/bin to your PATH variable.

Instead of installing opera normally using yum or rpm, extract the files with unrar or midnight commander (mc).

You can examine an rpm file before you install it with "rpm -qlp <filename>". There could be a problem if opera needs to read a config file in /etc/, but usually a program will look for a config file in your home directory and use that if it is present.

I can't guarantee this will work. A lot depends on how the program is designed. Some programs like Sun Office have installers that can be install the program for an indivual user.

Good Luck.

Last edited by jainforall; 10-22-2007 at 12:20 AM.
 
  


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
mkdir with root privileges slam Programming 3 09-29-2006 05:22 PM
USB HD Needs Root Privileges rrrssssss Linux - Hardware 3 11-13-2005 04:08 PM
Root privileges for user ar1 Linux - Security 2 01-07-2005 09:33 PM
root privileges and permissions evil_lafta Slackware 7 08-20-2003 09:37 PM
Xine and root privileges markus1982 Linux - Software 1 08-18-2003 03:23 PM


All times are GMT -5. The time now is 02:51 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration