LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Where does RPM get install? (https://www.linuxquestions.org/questions/linux-newbie-8/where-does-rpm-get-install-710224/)

your_shadow03 03-09-2009 06:47 AM

Where does RPM get install?
 
I just want to know where does all RPm gets stored?

billymayday 03-09-2009 06:58 AM

It depends how you are installing them. An RPM contains program binaries, so they are placed in the relevant locations (maybe /bin, /sbin, configs in /etc and so on), but the rpm itself may not be stored.

If you use yum for example, the rpm is downloaded, installed and deleted (at least I assume this is the physical process, but have never needed to investigate in detail), unless you specify that you want the rpm saved (IIRC it's the keepcache directive for yum.conf)

your_shadow03 03-09-2009 07:06 AM

I installed Subversion RPM through yum.
Now I just need to install Subversion on another machine.
Is it possible that I can retrieve RPM from the machine and put it on another with same architecture.

billymayday 03-09-2009 07:10 AM

See my note regarding the keepcache directive (I think that's the correct one - I don't generally store rpms myself). If you've already been through the process then the answer is probably no.

BM

hackson 03-09-2009 07:25 AM

Hi Shadow,

I am re framing you question as " I have installed an RPM with Yum and i don't want to reinstall in another machine again from net and i want to make use of rpm which got stored for first machine and use locally..?"
The approach for this is, confirm before installing the package for the first time on the first machine keepcache=1 in /etc/yum.conf and notice the cache directory too. and after your installation, go to that location you can have those rpms and use these for yourself.

If any more information, pl get back to me

Do you know the usage of subversion along with trac/remdine to maintain the projects better, I guess you do, I found a site called click2try.com, you can test these applications running from ur browser and it is absolutely free/

knudfl 03-09-2009 08:18 AM

To know, where the files from a 'package.rpm' has gone,
use this command : rpm ql <package>

To keep packages, downloaded with yum, see this thread :
http://www.linuxquestions.org/questi...m-rpms-709728/

" .. files are stored in /var/cache/yum/<reponame>/packages/ "
.. and please read on to see, how to keep the packages.
( Usually "yum" will remove all packages after install )
.....

PTrenholme 03-09-2009 08:59 AM

By default, yum removes the RPM file after a successful installation, so you'll have a hard time finding them for later use. There is a plug-in (downloadonly) that will add a "downloadonly" option to yum so you can use it to download the rpm files which can then be installed using the rpm command.

If you have any rpm files in your cache, a sudo find /var/cache/ -name '*.rpm' command will list them. (Which I just ran on my system and discovered that apt -- which I'd installed a while ago -- apparently archives the rpm files, as does akmod, so I've got some wasted storage space on this laptop. But that's not your problem, eh?)

sureshsujatha 03-09-2009 02:35 PM

Quote:

Originally Posted by your_shadow03 (Post 3469517)
I just want to know where does all RPm gets stored?

As far as I know - the /bin folder of your machine!
:)

John VV 03-09-2009 03:49 PM

sureshsujatha
besides no useful info -- it is the wrong info
post reported


All times are GMT -5. The time now is 01:52 PM.