Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th March 2012, 01:48 AM
sepoto Offline
Registered User
 
Join Date: Dec 2010
Posts: 174
linuxfirefox
Package Manager. (Inspecting what was installed).

I used the GUI package manager to install:

php-5.3.10-1.fc16

What would be the best way to see all of the files that were installed on the system by this particular package. I don't really care about the dependencies. I'm trying to find the quickest way at getting at that nugget. Does anyone know what to do with that?

---------- Post added at 01:40 AM ---------- Previous post was at 01:32 AM ----------

I just looked over man yum. I really did not see it in there yet.

---------- Post added at 01:48 AM ---------- Previous post was at 01:40 AM ----------

Alright so this is what it is I think:

[penguin@Penguin-PC ~]$ repoquery --list php-5.3.10-1.fc16
/etc/httpd/conf.d/php.conf
/usr/lib/httpd/modules/libphp5-zts.so
/usr/lib/httpd/modules/libphp5.so
/var/lib/php/session
/var/www/icons/php.gif
[penguin@Penguin-PC ~]$

That is an impressively short list of files. I like that.
Reply With Quote
  #2  
Old 9th March 2012, 01:52 AM
bob's Avatar
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,235
linuxfirefox
Re: Package Manager. (Inspecting what was installed).

One way you might confirm it is to run this:

Quote:
rpm -qa --last | tac
It's a list of all packages installed in chronological order. So, if you just installed php-5.3.10-1.fc16 then the date and time for other packages should pin them down as being included.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #3  
Old 9th March 2012, 01:56 AM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,128
linuxchrome
Re: Package Manager. (Inspecting what was installed).

When you installed php, it also installed php-cli and php-common packages as dependencies. The php-common package contains many more files than the php package.
Code:
rpm -ql php-common php-cli
Reply With Quote
  #4  
Old 9th March 2012, 06:52 AM
sepoto Offline
Registered User
 
Join Date: Dec 2010
Posts: 174
linuxfirefox
Re: Package Manager. (Inspecting what was installed).

So that leads me to the other question of how does one list the dependencies for a .fc16. I see some references to how to do that for a .rpm on the forum already but an .fc16 is not really an rpm file. How should that problem be approached?
Reply With Quote
  #5  
Old 9th March 2012, 02:13 PM
nonamedotc's Avatar
nonamedotc Offline
Formerly known as"professorrmd"
 
Join Date: Mar 2011
Posts: 2,629
linuxfirefox
Re: Package Manager. (Inspecting what was installed).

You can use yum deplist package_name. This is what I have, for example.

Code:
yum deplist php-5.3.10-1.fc16.x86_64
Loaded plugins: langpacks, presto, refresh-packagekit
Finding dependencies: 
package: php.x86_64 5.3.10-1.fc16
  dependency: httpd
   provider: httpd.x86_64 2.2.22-1.fc16
  dependency: httpd-mmn = 20051115-x86-64
   provider: httpd.x86_64 2.2.22-1.fc16
  dependency: libbz2.so.1()(64bit)
   provider: bzip2-libs.x86_64 1.0.6-3.fc15
  dependency: libc.so.6()(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libc.so.6(GLIBC_2.11)(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libc.so.6(GLIBC_2.14)(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libc.so.6(GLIBC_2.15)(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libc.so.6(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libc.so.6(GLIBC_2.3)(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libc.so.6(GLIBC_2.3.4)(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libc.so.6(GLIBC_2.4)(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libc.so.6(GLIBC_2.7)(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libc.so.6(GLIBC_2.8)(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libcom_err.so.2()(64bit)
   provider: libcom_err.x86_64 1.41.14-2.fc15
  dependency: libcrypt.so.1()(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libcrypto.so.10()(64bit)
   provider: openssl.x86_64 1.0.0g-1.fc16
  dependency: libdl.so.2()(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libdl.so.2(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libgmp.so.3()(64bit)
   provider: gmp.x86_64 1:4.3.2-4.fc16
  dependency: libgssapi_krb5.so.2()(64bit)
   provider: krb5-libs.x86_64 1.9.2-6.fc16
  dependency: libk5crypto.so.3()(64bit)
   provider: krb5-libs.x86_64 1.9.2-6.fc16
  dependency: libkrb5.so.3()(64bit)
   provider: krb5-libs.x86_64 1.9.2-6.fc16
  dependency: libm.so.6()(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libm.so.6(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libnsl.so.1()(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libpcre.so.0()(64bit)
   provider: pcre.x86_64 8.12-7.fc16
  dependency: libpthread.so.0()(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libpthread.so.0(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libresolv.so.2()(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libresolv.so.2(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: librt.so.1()(64bit)
   provider: glibc.x86_64 2.14.90-24.fc16.6
  dependency: libssl.so.10()(64bit)
   provider: openssl.x86_64 1.0.0g-1.fc16
  dependency: libxml2.so.2()(64bit)
   provider: libxml2.x86_64 2.7.8-6.fc16
  dependency: libxml2.so.2(LIBXML2_2.4.30)(64bit)
   provider: libxml2.x86_64 2.7.8-6.fc16
  dependency: libxml2.so.2(LIBXML2_2.5.2)(64bit)
   provider: libxml2.x86_64 2.7.8-6.fc16
  dependency: libxml2.so.2(LIBXML2_2.6.0)(64bit)
   provider: libxml2.x86_64 2.7.8-6.fc16
  dependency: libxml2.so.2(LIBXML2_2.6.11)(64bit)
   provider: libxml2.x86_64 2.7.8-6.fc16
  dependency: libxml2.so.2(LIBXML2_2.6.5)(64bit)
   provider: libxml2.x86_64 2.7.8-6.fc16
  dependency: libz.so.1()(64bit)
   provider: zlib.x86_64 1.2.5-6.fc16
  dependency: php-cli(x86-64) = 5.3.10-1.fc16
   provider: php-cli.x86_64 5.3.10-1.fc16
  dependency: php-common(x86-64) = 5.3.10-1.fc16
   provider: php-common.x86_64 5.3.10-1.fc16
  dependency: rtld(GNU_HASH)
   provider: glibc.x86_64 2.14.90-24.fc16.6
   provider: glibc.i686 2.14.90-24.fc16.6
P.S. NOT IMPORTANT: Could someone tell me how I can format this output in to two columns. Thanks.

---------- Post added at 08:13 AM ---------- Previous post was at 08:10 AM ----------

Quote:
Originally Posted by sepoto View Post
So that leads me to the other question of how does one list the dependencies for a .fc16. I see some references to how to do that for a .rpm on the forum already but an .fc16 is not really an rpm file. How should that problem be approached?
As far as I know, *.fc16 simply indicates Fedora version that the package was meant to ...
Reply With Quote
  #6  
Old 9th March 2012, 02:38 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,128
linuxchrome
Re: Package Manager. (Inspecting what was installed).

You're seeing a "problem" that doesn't exist. Yum and rpm can reference an rpm package in several ways.
The full rpm package file name is composed of several elements: name-version-release.arch.rpm
Code:
rpm -q --queryformat "%{name}-%{version}-%{release}.%{arch}\n" audacious
audacious-3.0.4-1.fc16.x86_64
In the above, "1.fc16" is the "release". All the following are valid formats to use with either rpm or yum.

audacious-3.0.4-1.fc16.x86_64
audacious-3.0.4-1.fc16
audacious-3.0.4
audacious.x86_64

You only use the full rpm package name, including the .rpm extension, when dealing directly with the package file.

"man rpm" and "man yum"

If you wanted to see the "dependencies" for installed package php, then:
Code:
rpm -qR php


---------- Post added at 09:38 AM ---------- Previous post was at 09:28 AM ----------

For tidier output to the "yum deplist packagname" command:
Code:
BASH:~/-> yum deplist php | grep provider | uniq -u | awk '{print $2}'
bzip2-libs.i686
libcom_err.i686
glibc.i686
openssl.i686
gmp.i686
pcre.i686
openssl.i686
zlib.i686
php-cli.i686
php-common.i686
glibc.x86_64
glibc.i686
bzip2-libs.x86_64
libcom_err.x86_64
glibc.x86_64
openssl.x86_64
gmp.x86_64
pcre.x86_64
openssl.x86_64
zlib.x86_64
php-cli.x86_64
php-common.x86_64
glibc.x86_64
glibc.i686
You'll see both .i686 and .x86_64 entries if you're using an .x86_64 install of Fedora, even though only the .x86_64 versions would be the actual deps.

Last edited by PabloTwo; 9th March 2012 at 04:31 PM.
Reply With Quote
  #7  
Old 9th March 2012, 04:21 PM
randomuser's Avatar
randomuser Online
Registered User
 
Join Date: Mar 2012
Location: Montana, US
Posts: 59
linuxchrome
Re: Package Manager. (Inspecting what was installed).

There's a lot for the OP to learn from this thread!

In response to the original question, rpm -qs $PACKAGENAME will show the files installed by a package.

There's not a lot TO that package. Is there a particular problem you are having with php?
Reply With Quote
  #8  
Old 10th March 2012, 12:23 AM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7firefox
Re: Package Manager. (Inspecting what was installed).

If you have yum-utils installed you can use

Code:
repoquery --list <packagename>
__________________
======
Doug G
======
Reply With Quote
Reply

Tags
inspecting, installed, manager, package

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is the Network Manager installed by default when Fedora 14 is installed by a Live CD vefoda Servers & Networking 5 19th April 2011 10:32 PM
Package Kit Installed 64 Bit Wine Package into a 32 Bit Base Install dd_wizard Using Fedora 0 23rd November 2009 10:15 PM
package manager link from file manager manic-marvin Using Fedora 0 10th September 2008 05:11 PM
rpm error: package installed but NOT installed locutius Using Fedora 8 1st May 2006 03:12 PM
Can't get yum, Package Updater, and Package Manager to work in FC5 Tom22 Using Fedora 10 4th April 2006 03:44 AM


Current GMT-time: 16:57 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat