Fedora Linux Support Community & Resources Center
  #1  
Old 25th July 2012, 09:26 AM
tech291083 Offline
Registered User
 
Join Date: Sep 2006
Posts: 1,046
linuxfirefox
Information about installed packages

Hi,

I am using Fedora 17 LXDE spin. Just a few minutes ago I typed this command in a terminal as root and it took some time to download and install all the Perl related packages. There were more than 1000 packages as I remember and the total size of the download was also nearly 300 MB.

Code:
[root@localhost john]# yum install perl*
Is there any way I can know the total number of packages, their total size and the total time it took once they have been already downloaded and installed? For example, 10 days ago or a year ago?

Thanks.
__________________
fedoralinuxcommands.blogspot.com


All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo
Reply With Quote
  #2  
Old 25th July 2012, 09:40 AM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,690
linuxfirefox
Re: Information about installed packages

As root:

PHP Code:
yum history list
yum history info n 
(where n is a number shown in the previous command)

For example:
Code:
[root@phenom17 glenn>$ yum history list
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
ID     | Command line             | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
    93 | update -y                | 2012-07-24 03:28 | Update         |    5   
    92 | install OpenIPMI         | 2012-07-23 03:47 | Install        |    2   
    91 | install ipmiutil         | 2012-07-23 03:45 | Install        |    1   
    90 | install ipmitool         | 2012-07-23 03:43 | Install        |    1   
    89 | -y install gkrellm       | 2012-07-22 10:32 | Install        |    2   
    88 | update -y                | 2012-07-22 03:27 | E, I, U        |   10   
    87 | -y update                | 2012-07-21 06:54 | Update         |   15 EE
    86 | update -y                | 2012-07-20 03:48 | E, I, O, U     |   34   
    85 | -y update                | 2012-07-19 03:22 | Update         |   16   
    84 | install barry            | 2012-07-18 18:14 | Install        |    4   
    83 | update -y                | 2012-07-16 06:01 | Update         |   14   
    82 | update -y                | 2012-07-13 03:22 | I, U           |    2 EE
    81 | update                   | 2012-07-12 02:57 | Update         |   11   
    80 | update -y                | 2012-07-11 03:31 | Update         |   16   
    79 | install memtest86+       | 2012-07-10 19:34 | Install        |    1   
    78 | install hardinfo         | 2012-07-10 03:52 | Install        |    1   
    77 | install procinfo         | 2012-07-10 03:48 | Install        |    1   
    76 | update                   | 2012-07-09 05:16 | E, I, U        |   13   
    75 | update -y                | 2012-07-07 04:40 | Update         |   27   
    74 | install geany            | 2012-07-04 09:07 | Install        |    1   
history list
Code:
yum history info 93
The yum logs (/var/log/yum.log) should be helpful too.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 25th July 2012, 10:19 AM
tech291083 Offline
Registered User
 
Join Date: Sep 2006
Posts: 1,046
linuxfirefox
Re: Information about installed packages

Quote:
Originally Posted by glennzo View Post
As root:

PHP Code:
yum history list
yum history info n 
(where n is a number shown in the previous command)

For example:
[CODE][root@phenom17 glenn>$ yum history list

Code:
yum history info 93
The yum logs (/var/log/yum.log) should be helpful too.
Thanks, its a good command indeed. Here is what I did.

Code:

[root@localhost john]# yum history list
Loaded plugins: langpacks, presto, refresh-packagekit
ID     | Command line             | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
    48 | install perl*            | 2012-07-25 12:36 | I, U           | 2294 EE
    47 | install geany*           | 2012-07-24 19:52 | I, U           |   46   
    46 | install gnome-packagekit | 2012-07-23 22:26 | I, U           |    5   
    45 | install ssh*             | 2012-07-23 22:06 | Install        |   23   
    44 | install bash*            | 2012-07-23 21:53 | I, U           |    5   
    43 | install pcmanx-gtk2.i686 | 2012-07-23 21:51 | Install        |    1   
    42 | install security-menus.n | 2012-07-23 21:47 | Install        |    1   
    41 | install nessus*          | 2012-07-23 21:42 | Install        |    9   
    40 | install ipta*            | 2012-07-23 21:21 | I, U           |    2   
    39 | install clamtk           | 2012-07-23 21:15 | Install        |   15   
    38 | install clamav           | 2012-07-23 21:09 | Install        |    3   
    37 | install aide.i686        | 2012-07-23 21:05 | Install        |    1   
    36 | install gimp             | 2012-07-23 21:01 | Install        |   11   
    35 | install brasero*         | 2012-07-23 20:44 | I, U           |   50   
    34 | install alsamixer*       | 2012-07-23 20:36 | Install        |    2   
    33 | install evolution        | 2012-07-23 20:33 | Install        |    2   
    32 | install gcal*            | 2012-07-23 20:26 | Install        |    2   
    31 | install vim-X11.i686     | 2012-07-23 20:21 | Install        |    1   
    30 | install geany            | 2012-07-23 20:18 | Install        |    1   
    29 | install php-mysql        | 2012-07-23 20:15 | Install        |    2   
history list
[root@localhost john]# yum history info 48|wc -l
2336
[root@localhost john]# yum history info 48|head -20
Loaded plugins: langpacks, presto, refresh-packagekit
Transaction ID : 48
Begin time     : Wed Jul 25 12:36:11 2012
Begin rpmdb    : 1488:ddcca20cbd9f5fb88c286dbaede8ecbba973320d
End time       :            13:43:41 2012 (67 minutes)
End rpmdb      : 3762:18cb4f2c0d9253c1b9189c4c121913b0b92da9fb
User           : john <john>
Return-Code    : Success
Command Line   : install perl*
Transaction performed with:
    Updated       rpm-4.9.1.3-6.fc17.i686        @koji-override-0/$releasever
    Installed     yum-3.4.3-28.fc17.noarch       @updates
    Installed     yum-presto-0.7.3-1.fc17.noarch @koji-override-0/$releasever
Packages Altered:
    Dep-Install Canna-libs-3.7p3-34.fc17.i686                                       @fedora
    Dep-Install GeoIP-1.4.8-2.1.fc17.i686                                           @fedora
    Dep-Install GitPython-0.3.2-0.2.RC1.fc17.noarch                                 @fedora
    Dep-Install ImageMagick-perl-6.7.5.6-3.fc17.i686                                @fedora
    Dep-Install Judy-1.0.5-4.fc17.i686                                              @fedora
    Dep-Install Perlbal-1.80-1.fc17.noarch                                          @updates


Exiting on Broken Pipe


[root@localhost john]# cat /var/log/yum.log|grep -i perl|wc -l
2048


---------- Post added at 02:19 AM ---------- Previous post was at 02:10 AM ----------

As you can see, the following command does not tell me what I want to know ie total number of packages, total size in the first 20 lines.


Code:
[root@localhost john]# yum history info 48|head -20
Any other way I can know that? Thanks.
__________________
fedoralinuxcommands.blogspot.com


All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

Last edited by tech291083; 25th July 2012 at 10:15 AM.
Reply With Quote
  #4  
Old 25th July 2012, 11:04 AM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,690
linuxfirefox
Re: Information about installed packages

Here's what I can tell you at this point. This line:
PHP Code:
 48 install perl*            | 2012-07-25 12:36 IU           2294 EE 
tells you that there were 2294 packages installed. Some were installs, I and some were updates, U. There were some errors recorded EE.

/var/log/yum.log will list all packages that were installed or updated.
PHP Code:
grep "Jul 25" /var/log/yum.log 
I really wish there was a good page (or several good pages) on yum. IMHO, good documentation is severely lacking.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #5  
Old 25th July 2012, 01:00 PM
tech291083 Offline
Registered User
 
Join Date: Sep 2006
Posts: 1,046
linuxfirefox
Re: Information about installed packages

Quote:
Originally Posted by glennzo View Post
Here's what I can tell you at this point. This line:
PHP Code:
 48 install perl*            | 2012-07-25 12:36 IU           2294 EE 
tells you that there were 2294 packages installed. Some were installs, I and some were updates, U. There were some errors recorded EE.
Oh great, you got my point. Thanks. I always try to work on solutions on my own with whatever little skillset I have. But forum members like yourself are always the best source of knowledge and info and I thank you for that.

Quote:
I really wish there was a good page (or several good pages) on yum. IMHO, good documentation is severely lacking.
Yes, correct. I always read the man pages, but I do not like the structure of the same. No offense to the developers, but somehow I always end up seeking help from this very forum, thanks indeed.
__________________
fedoralinuxcommands.blogspot.com


All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo
Reply With Quote
Reply

Tags
information, installed, packages

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
Install debuginfo packages of installed packages only lewis41 F14 Development 3 25th August 2010 09:11 PM
finding information about installed package stardust496 Installation, Upgrades and Live Media 5 26th March 2009 04:13 PM
pup: no useful information display when updating packages Phil Airtime Using Fedora 2 17th November 2007 04:36 PM
Important information regarding latest Xorg update packages jspaleta News 1 23rd September 2005 01:28 AM


Current GMT-time: 22:16 (Saturday, 30-08-2014)

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