LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   install rpm file , where is it ? (https://www.linuxquestions.org/questions/linux-software-2/install-rpm-file-where-is-it-222894/)

kernelvn 08-26-2004 09:37 PM

install rpm file , where is it ?
 
I've try to install a rpm packet by the command :
rpm -ivh abc.rpm
But where it going to , I don't know . So how could I know where it going to ?

ppuru 08-26-2004 10:04 PM

When you

rpm -ql abc ( where abc is the installed abc.rpm), you will get to know the locations the files in this RPM will be written to)

If you want to check this before you want to install the RPM, you can

rpm -qlp abc.rpm ( this time you need the entire rpm name along with the path)

kernelvn 08-26-2004 10:36 PM

so can we configure the destination to install rpm packet to ?

ppuru 08-26-2004 10:42 PM

I have never tried ... but some of the rpms are relocatable.

you can do a

rpm -qip /path/to/abc.rpm

It would come up with Relocations: relocatable or not relocatable.

Code:

Name        : abc                        Relocations: (not relocatable)
Version    :  nn.nn-nn                            Vendor: Red Hat, Inc.
Release    : n                            Build Date: Thu 06 May 2004 09:04:59


sgtbob 08-27-2004 05:43 AM

Not sure if this helps from a :newbie: , but during the download, you may select the folder that tyour downloaded files are to be placed in.

I made a 'Download' file in my /home/bob and store my downloads therein. I usually can double click the icon and it installs. Barring that, I 'su -' and as root (#) enter 'rpm -Uvh /home/bob/Download/rpm*' (quote marks added only to show the entry, not needed during actual typing). Or if you prefer to enter the whole item to avoid attempted load of other rpm files, at # enter 'rpm -Uvh /home/bob/Download/ xyzitem.1.2.3-i386.rpm' or whatever the actual rpm name is you want loaded.

SgtBob
also a :newbie:

Mara 08-27-2004 07:45 PM

Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.


All times are GMT -5. The time now is 11:57 AM.