LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 04-29-2006, 11:50 PM   #1
Tails and Link
LQ Newbie
 
Registered: Apr 2006
Location: Tx.
Distribution: fedora core5
Posts: 6

Rep: Reputation: 0
Question Find location of packages previously installed with yum on fedora core 5


I am like a MAJOR 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! 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?!
 
Old 04-30-2006, 12:01 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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
 
Old 04-30-2006, 01:08 AM   #3
Tails and Link
LQ Newbie
 
Registered: Apr 2006
Location: Tx.
Distribution: fedora core5
Posts: 6

Original Poster
Rep: Reputation: 0
oops... diddn't mean to do this...

Last edited by Tails and Link; 04-30-2006 at 01:09 AM.
 
Old 04-30-2006, 01:11 AM   #4
Tails and Link
LQ Newbie
 
Registered: Apr 2006
Location: Tx.
Distribution: fedora core5
Posts: 6

Original Poster
Rep: Reputation: 0
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??!!

Last edited by Tails and Link; 04-30-2006 at 01:48 AM.
 
Old 04-30-2006, 01:28 AM   #5
Tails and Link
LQ Newbie
 
Registered: Apr 2006
Location: Tx.
Distribution: fedora core5
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 04-30-2006, 01:49 AM   #6
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 51
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
 
Old 04-30-2006, 01:59 AM   #7
Tails and Link
LQ Newbie
 
Registered: Apr 2006
Location: Tx.
Distribution: fedora core5
Posts: 6

Original Poster
Rep: Reputation: 0
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!
 
Old 04-30-2006, 02:20 AM   #8
Tails and Link
LQ Newbie
 
Registered: Apr 2006
Location: Tx.
Distribution: fedora core5
Posts: 6

Original Poster
Rep: Reputation: 0
*yawn* Its 1:20. going to bed in 20 min.
 
Old 04-30-2006, 05:27 AM   #9
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
"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??
 
  


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
Can't find/use fglrxconfig after ATI 9800 XT Drivers for Fedora Core 4 are installed guimo_x Linux - Hardware 3 02-12-2006 09:28 PM
no packages in yum:dag on fedora core 4 Lobais Fedora 2 08-16-2005 12:33 PM
yum can not find up2date packages !! m2azer Linux - Newbie 3 01-03-2005 12:54 PM
Cannot Find Installed Packages cajunaggie Linux - Newbie 3 09-18-2004 12:59 PM
installing packages using yum in fedora sven_p Linux - Software 1 03-16-2004 07:27 AM


All times are GMT -5. The time now is 08:39 AM.

Main Menu
Advertisement
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