LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Find location of packages previously installed with yum on fedora core 5 (https://www.linuxquestions.org/questions/linux-newbie-8/find-location-of-packages-previously-installed-with-yum-on-fedora-core-5-a-440173/)

Tails and Link 04-29-2006 10:50 PM

Find location of packages previously installed with yum on fedora core 5
 
I am like a MAJOR newbie:newbie: ...so what comes with being a newb? Problems.

So I went and installed some packages with yum, and now I want to find out where yum put them. I did a yum search and it gave tons of info, EXCEPT where it put it!:mad: How irritating! I installed a different package to see if the info would be there while it was installing, but No...so my question is: How in the world do you find out where yum puts packages?!

Simon Bridge 04-29-2006 11:01 PM

YUM caches it's packages to /ver/cache/yum/ or somesuch. They are sorted according to repository. The directory is defined in /etc/yum.conf.

However: it is not clear how this helps you.

Since you are total newb, take a shufti at:
www.fedorafaq.org
www.mjmwired.net > resources

Tails and Link 04-30-2006 12:08 AM

oops... diddn't mean to do this...

Tails and Link 04-30-2006 12:11 AM

I mooked arround with the terminal commands you gave me diddn't get real results. Went to both sites and diddn't help. I'm not that much of a newb.Am going to try to find locations wit the terminal commands...

I got to /ver/cache/yum/...nothing. And there was nothing in /etc/yum.conf. Also, I heard that most packages get installed in /usr/local/. I opened every file, all empty! Is the world going crazy?!

Maby, I am not giving enough info...I am installing certian packages that I'm not quite ceartian are packages at all. Some are shells, some are rpms. Others are Heaven knows what. Also, I am trying to get Barcelona Cell Software Development Kit to install using yum... but I keep getting "permision denied" on some pices I try to install. I'm using root! Whats going on??!!

Tails and Link 04-30-2006 12:28 AM

Quote:

Originally Posted by Tails and Link
I mooked arround with the terminal commands you gave me diddn't get real results. Went to both sites and diddn't help. I'm not that much of a newb.Am going to try to find locations wit the terminal commands...

I got to /ver/cache/yum/...nothing. And there was nothing in /etc/yum.conf.

Sorry, I thought those were terminal commands, no wonder i diddn't get better results on that.:D

Hitboxx 04-30-2006 12:49 AM

Hi Tails and Links (this is sure a noob name ;) jk),

If you know the package name, then there is a very simple command to do this.

In the console,
Code:

#whereis <package name>
For example, if i do a whereis on my package KYum
Code:

[shrikant@shrilinx ~]$ whereis kyum
kyum: /usr/bin/kyum.bin /usr/bin/kyum [This is the output]

Hope this helps
Cheers

Tails and Link 04-30-2006 12:59 AM

What can I say? I love Sonic the Hedgehog and The Legend of Zelda games!

[root@localhost ~]# whereis xlc-cell-cmp-1.0-1.i386.rpm
xlc-cell-cmp-1.0-1.i386:

This is what I get. Not what I'm looking for. Love the wallpaper on your desktop!

Tails and Link 04-30-2006 01:20 AM

*yawn* Its 1:20. going to bed in 20 min.

Simon Bridge 04-30-2006 04:27 AM

"whereis" will only find files in common executable directories.
"slocate" works better but you have to update the database.

note: the yum cache may be empty because sometimes it gets cleaned up.

Try

cat /etc/yum.conf | grep cachedir=

you get /var/cache/yum (note: not /ver/cache/yum - watch that spelling)
(to find out anything about these commands, type "man <command>")

YUM downloads rpm files and yum headers and sticks them in the cache directory. It looks in the header to see what dependencies are needed and where to get them and then downloads all those rpms etc and so on until all dependencies are resolved.

The rpm files are called "packages".

However - if you want to find where the resulting program was installed ... you need to read the documentation very carefully. The man or info pages, and the faq on the maitainers website.

Usually the "whereis" command will find the program's executable for you. But not always. Sometimes there is a bit of guessworkn involved - what developers find obvious is not always what a particular user will find obvious.

So - perhaps it will suit your purpose better if you just told us what you want to know for: why do you feel you need to know where the packages are put.

Quote:

[root@localhost ~]# whereis xlc-cell-cmp-1.0-1.i386.rpm
xlc-cell-cmp-1.0-1.i386:

This is what I get. Not what I'm looking for.
OK - so what were you looking for. You found the package you searched for after all.

I take it you are trying to install: x86 cross-hosted development environment for GNU/Linux on the Cell Broadband Engine (CBE).

So you are trying to run a Cell Broadband CPU simulator??


All times are GMT -5. The time now is 01:33 AM.