Main Page | Report this Page
Linux Forum Index  »  Linux - Red Hat Forum  »  How to install a redhat package without root on a...
Page 1 of 1    

How to install a redhat package without root on a...

Author Message
Peng Yu...
Posted: Tue Aug 25, 2009 4:35 pm
Guest
Hi,

My system is RedHat. But I don't have root permission. But I want to
install reahat packages in my home directory.

Can somebody let me know how to install such a package in my home
directory?

Regards,
Peng
 
Johnny Rebel...
Posted: Wed Aug 26, 2009 4:10 am
Guest
Peng Yu wrote:
Quote:
Hi,

My system is RedHat. But I don't have root permission. But I want to
install reahat packages in my home directory.

Can somebody let me know how to install such a package in my home
directory?

Regards,
Peng

Hey,

Not sure if it will work, but rpm has a "--relocate" parameter. You
may be better off going from source for that, as I believe the rpm
database will need to be updated (which you need root for). Failing
that, try and find a binary tarball that you can just extract into your
home directory.

JR.

--


--> GNU/Linux is user friendly... it's just picky about its friends.
 
Peng Yu...
Posted: Wed Aug 26, 2009 5:19 am
Guest
On Aug 26, 5:10 am, Johnny Rebel <re... at (no spam) none.com> wrote:
Quote:
Peng Yu wrote:
Hi,

My system is RedHat. But I don't have root permission. But I want to
install reahat packages in my home directory.

Can somebody let me know how to install such a package in my home
directory?

Regards,
Peng

Hey,

        Not sure if it will work, but rpm has a "--relocate" parameter.    You
may be better off going from source for that, as I believe the rpm
database will need to be updated (which you need root for).  Failing
that, try and find a binary tarball that you can just extract into your
home directory.

I looked at the help of rpm. It doesn't say '--relocate' would
correctly install the package without the root permission. Currently,
I want to install 'screen' in my home directory. Would you please let
me know where I can find the rpm package for 'screen' so that I can
try '--relocate'?

Regards,
Peng
 
Johnny Rebel...
Posted: Wed Aug 26, 2009 2:34 pm
Guest
Peng Yu wrote:
Quote:
On Aug 26, 5:10 am, Johnny Rebel <re... at (no spam) none.com> wrote:
Peng Yu wrote:
Hi,
My system is RedHat. But I don't have root permission. But I want to
install reahat packages in my home directory.
Can somebody let me know how to install such a package in my home
directory?
Regards,
Peng
Hey,

Not sure if it will work, but rpm has a "--relocate" parameter. You
may be better off going from source for that, as I believe the rpm
database will need to be updated (which you need root for). Failing
that, try and find a binary tarball that you can just extract into your
home directory.

I looked at the help of rpm. It doesn't say '--relocate' would
correctly install the package without the root permission. Currently,
I want to install 'screen' in my home directory. Would you please let
me know where I can find the rpm package for 'screen' so that I can
try '--relocate'?

Regards,
Peng

Sometimes you just have to try things... it won't say 'need root' for
many, many things.

As someone in the other thread mentioned where you could find screen,
here is another link that goes to the x64 version as I noticed that is
what you posted. Normally, if you had root, a 'yum install screen'
would do it. Any chance you could email the admin asking for it?

http://centos.digitalson.com/centos/5/os/x86_64/CentOS/screen-4.0.3-1.el5.x86_64.rpm


JR.
--


--> GNU/Linux is user friendly... it's just picky about its friends.
 
Peng Yu...
Posted: Wed Aug 26, 2009 3:30 pm
Guest
On Aug 26, 3:34 pm, Johnny Rebel <re... at (no spam) none.com> wrote:
Quote:
Peng Yu wrote:
On Aug 26, 5:10 am, Johnny Rebel <re... at (no spam) none.com> wrote:
Peng Yu wrote:
Hi,
My system is RedHat. But I don't have root permission. But I want to
install reahat packages in my home directory.
Can somebody let me know how to install such a package in my home
directory?
Regards,
Peng
Hey,

        Not sure if it will work, but rpm has a "--relocate" parameter.    You
may be better off going from source for that, as I believe the rpm
database will need to be updated (which you need root for).  Failing
that, try and find a binary tarball that you can just extract into your
home directory.

I looked at the help of rpm. It doesn't say '--relocate' would
correctly install the package without the root permission. Currently,
I want to install 'screen' in my home directory. Would you please let
me know where I can find the rpm package for 'screen' so that I can
try '--relocate'?

Regards,
Peng

Sometimes you just have to try things... it won't say 'need root' for
many, many things.

As someone in the other thread mentioned where you could find screen,
here is another link that goes to the x64 version as I noticed that is
what you posted.  Normally, if you had root, a 'yum install screen'
would do it.  Any chance you could email the admin asking for it?

http://centos.digitalson.com/centos/5/os/x86_64/CentOS/screen-4.0.3-1...

I tried the following command, which give me an error. Can somebody
let me how to fix the problem?

$ rpm -ivh screen-4.0.3-1.el5.x86_64.rpm --relocate /usr/local=/home/
myaccount/utility/linux/
error: can't create transaction lock on /var/lib/rpm/__db.000

Another question is whether rpm with '--relocate' option handles
dependences?

Regards,
Peng
 
Johnny Rebel...
Posted: Wed Aug 26, 2009 8:10 pm
Guest
Peng Yu wrote:
Quote:
On Aug 26, 3:34 pm, Johnny Rebel <re... at (no spam) none.com> wrote:
Peng Yu wrote:
On Aug 26, 5:10 am, Johnny Rebel <re... at (no spam) none.com> wrote:
Peng Yu wrote:
Hi,
My system is RedHat. But I don't have root permission. But I want to
install reahat packages in my home directory.
Can somebody let me know how to install such a package in my home
directory?
Regards,
Peng
Hey,
Not sure if it will work, but rpm has a "--relocate" parameter. You
may be better off going from source for that, as I believe the rpm
database will need to be updated (which you need root for). Failing
that, try and find a binary tarball that you can just extract into your
home directory.
I looked at the help of rpm. It doesn't say '--relocate' would
correctly install the package without the root permission. Currently,
I want to install 'screen' in my home directory. Would you please let
me know where I can find the rpm package for 'screen' so that I can
try '--relocate'?
Regards,
Peng
Sometimes you just have to try things... it won't say 'need root' for
many, many things.

As someone in the other thread mentioned where you could find screen,
here is another link that goes to the x64 version as I noticed that is
what you posted. Normally, if you had root, a 'yum install screen'
would do it. Any chance you could email the admin asking for it?

http://centos.digitalson.com/centos/5/os/x86_64/CentOS/screen-4.0.3-1...

I tried the following command, which give me an error. Can somebody
let me how to fix the problem?

$ rpm -ivh screen-4.0.3-1.el5.x86_64.rpm --relocate /usr/local=/home/
myaccount/utility/linux/
error: can't create transaction lock on /var/lib/rpm/__db.000

Another question is whether rpm with '--relocate' option handles
dependences?

Regards,
Peng


As I stated, it may not work due to wanting/having to update the RPM
database - that looks like exactly what is happening. You /may/ also be
able to use the '--dbpath' parameter and specify a place you have write
access to. Not sure if you will need pre-existing database in place or
not, but if you do, the '--initdb' or '--rebuilddb' may help.

RPM in general does not handle dependencies, which is why the likes of
'yum', 'apt' and other package managers were created.

JR.



--


--> GNU/Linux is user friendly... it's just picky about its friends.
 
Peng Yu...
Posted: Thu Aug 27, 2009 4:02 pm
Guest
On Aug 26, 9:10 pm, Johnny Rebel <re... at (no spam) none.com> wrote:
Quote:
Peng Yu wrote:
On Aug 26, 3:34 pm, Johnny Rebel <re... at (no spam) none.com> wrote:
Peng Yu wrote:
On Aug 26, 5:10 am, Johnny Rebel <re... at (no spam) none.com> wrote:
Peng Yu wrote:
Hi,
My system is RedHat. But I don't have root permission. But I want to
install reahat packages in my home directory.
Can somebody let me know how to install such a package in my home
directory?
Regards,
Peng
Hey,
        Not sure if it will work, but rpm has a "--relocate" parameter.    You
may be better off going from source for that, as I believe the rpm
database will need to be updated (which you need root for).  Failing
that, try and find a binary tarball that you can just extract into your
home directory.
I looked at the help of rpm. It doesn't say '--relocate' would
correctly install the package without the root permission. Currently,
I want to install 'screen' in my home directory. Would you please let
me know where I can find the rpm package for 'screen' so that I can
try '--relocate'?
Regards,
Peng
Sometimes you just have to try things... it won't say 'need root' for
many, many things.

As someone in the other thread mentioned where you could find screen,
here is another link that goes to the x64 version as I noticed that is
what you posted.  Normally, if you had root, a 'yum install screen'
would do it.  Any chance you could email the admin asking for it?

http://centos.digitalson.com/centos/5/os/x86_64/CentOS/screen-4.0.3-1....

I tried the following command, which give me an error. Can somebody
let me how to fix the problem?

$ rpm -ivh screen-4.0.3-1.el5.x86_64.rpm --relocate /usr/local=/home/
myaccount/utility/linux/
error: can't create transaction lock on /var/lib/rpm/__db.000

Another question is whether rpm with '--relocate' option handles
dependences?

Regards,
Peng

As I stated, it may not work due to wanting/having to update the RPM
database - that looks like exactly what is happening.  You /may/ also be
able to use the '--dbpath' parameter and specify a place you have write
access to.  Not sure if you will need pre-existing database in place or
not, but if you do, the '--initdb' or '--rebuilddb' may help.

RPM in general does not handle dependencies, which is why the likes of
'yum', 'apt' and other package managers were created.

I have never be an administrator of a machine and am not how the
installation mechanism works. I read the output of 'rpm --help'. But I
still do not understand what I should do. Would you please try if you
can install the package in your home dir (with root)? If it is
successful, would you please let me know what command I should use?
Thank you!
 
Johnny Rebel...
Posted: Thu Aug 27, 2009 8:35 pm
Guest
Peng Yu wrote:
Quote:
On Aug 26, 9:10 pm, Johnny Rebel <re... at (no spam) none.com> wrote:
Peng Yu wrote:
On Aug 26, 3:34 pm, Johnny Rebel <re... at (no spam) none.com> wrote:
Peng Yu wrote:
On Aug 26, 5:10 am, Johnny Rebel <re... at (no spam) none.com> wrote:
Peng Yu wrote:
Hi,
My system is RedHat. But I don't have root permission. But I want to
install reahat packages in my home directory.
Can somebody let me know how to install such a package in my home
directory?
Regards,
Peng
Hey,
Not sure if it will work, but rpm has a "--relocate" parameter. You
may be better off going from source for that, as I believe the rpm
database will need to be updated (which you need root for). Failing
that, try and find a binary tarball that you can just extract into your
home directory.
I looked at the help of rpm. It doesn't say '--relocate' would
correctly install the package without the root permission. Currently,
I want to install 'screen' in my home directory. Would you please let
me know where I can find the rpm package for 'screen' so that I can
try '--relocate'?
Regards,
Peng
Sometimes you just have to try things... it won't say 'need root' for
many, many things.
As someone in the other thread mentioned where you could find screen,
here is another link that goes to the x64 version as I noticed that is
what you posted. Normally, if you had root, a 'yum install screen'
would do it. Any chance you could email the admin asking for it?
http://centos.digitalson.com/centos/5/os/x86_64/CentOS/screen-4.0.3-1...
I tried the following command, which give me an error. Can somebody
let me how to fix the problem?
$ rpm -ivh screen-4.0.3-1.el5.x86_64.rpm --relocate /usr/local=/home/
myaccount/utility/linux/
error: can't create transaction lock on /var/lib/rpm/__db.000
Another question is whether rpm with '--relocate' option handles
dependences?
Regards,
Peng
As I stated, it may not work due to wanting/having to update the RPM
database - that looks like exactly what is happening. You /may/ also be
able to use the '--dbpath' parameter and specify a place you have write
access to. Not sure if you will need pre-existing database in place or
not, but if you do, the '--initdb' or '--rebuilddb' may help.

RPM in general does not handle dependencies, which is why the likes of
'yum', 'apt' and other package managers were created.

I have never be an administrator of a machine and am not how the
installation mechanism works. I read the output of 'rpm --help'. But I
still do not understand what I should do. Would you please try if you
can install the package in your home dir (with root)? If it is
successful, would you please let me know what command I should use?
Thank you!

Really, the easiest way to do it is get root, or ask. Do a 'yum list
screen*' and pick one. Then with the picked one, do a 'yum install
screen<whatever>'. Doing it the RPM way if it has any dependencies will
be tedious at best. If you can find source for it, try it that way, as
it is more likely to work the way you want. When compiling from source,
typically --prefix=<path> will install it to where you want. I
personally wouldn't do the RPM route at all, would go straight to source
- and not an SRC RPM either.

JR.

--


--> GNU/Linux is user friendly... it's just picky about its friends.
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Mon Nov 30, 2009 4:48 am