URPMI usege.

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

URPMI usege.

Postby Glenn » May 23rd, '11, 11:59

I've a question regarding the usage of urpmi. Specifically package installation history. Since I'm primarily a Fedora guy I'll explain with a yum example. To see a history of yum operations I issue the command
Code: Select all
yum history list

Code: Select all
[root@fedora15 ~]# yum history list
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
    47 | System <unset>           | 2011-05-22 11:14 | Install        |    1   
    46 | Glenn Johnson <glenn>    | 2011-05-20 20:08 | Install        |    1   
    45 | Glenn Johnson <glenn>    | 2011-05-20 06:04 | E, I, U        |   10   
    44 | Glenn Johnson <glenn>    | 2011-05-20 05:17 | E, I, O, U     |   41 EE
    43 | Glenn Johnson <glenn>    | 2011-05-14 18:29 | E, I, O, U     |  261 EE
    42 | Glenn Johnson <glenn>    | 2011-05-14 18:20 | Update         |    1  <
    41 | Glenn Johnson <glenn>    | 2011-04-30 03:31 | Install        |    1 >
    40 | Glenn Johnson <glenn>    | 2011-04-30 01:44 | Update         |   27   
    39 | Glenn Johnson <glenn>    | 2011-04-29 03:39 | Install        |    1   
    38 | Glenn Johnson <glenn>    | 2011-04-29 03:32 | I, U           |    5 ss
    37 | Glenn Johnson <glenn>    | 2011-04-28 18:28 | Update         |   29 EE
    36 | Glenn Johnson <glenn>    | 2011-04-27 18:51 | Update         |    1 EE
    35 | Glenn Johnson <glenn>    | 2011-04-27 03:34 | Update         |   71 ss
    34 | Glenn Johnson <glenn>    | 2011-04-25 04:31 | Update         |    2   
    33 | System <unset>           | 2011-04-24 17:29 | Install        |    1   
    32 | Glenn Johnson <glenn>    | 2011-04-24 04:06 | Update         |    1   
    31 | Glenn Johnson <glenn>    | 2011-04-23 14:43 | Install        |    1   
    30 | Glenn Johnson <glenn>    | 2011-04-23 13:26 | Install        |    1 P<
    29 | Glenn Johnson <glenn>    | 2011-04-23 04:33 | I, U           |    7 >
    28 | Glenn Johnson <glenn>    | 2011-04-22 19:42 | Install        |    1   

If I want to see what was installed / removed for ID 45 I issue
Code: Select all
yum history info 45

Code: Select all
[root@fedora15 ~]# yum history info 45
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Transaction ID : 45
Begin time     : Fri May 20 06:04:34 2011
Begin rpmdb    : 1288:d348075f9c37a7411ec528d25ea055d6b1651011
End time       :            06:07:01 2011 (147 seconds)
End rpmdb      : 1288:4d44c5e4236cf026b14ea60bdf97800d9f636325
User           : Glenn Johnson <glenn>
Return-Code    : Success
Command Line   : update -y
Transaction performed with:
    Installed     rpm-4.9.0-6.fc15.x86_64
    Installed     yum-3.2.29-5.fc15.noarch
    Installed     yum-metadata-parser-1.1.4-4.fc15.x86_64
    Installed     yum-plugin-fastestmirror-1.1.30-2.fc15.noarch
    Installed     yum-presto-0.6.2-3.fc15.noarch
Packages Altered:
    Updated authconfig-6.1.13-1.fc15.x86_64
    Update             6.1.14-2.fc15.x86_64
    Updated authconfig-gtk-6.1.13-1.fc15.x86_64
    Update                 6.1.14-2.fc15.x86_64
    Updated grep-2.7-5.fc15.x86_64
    Update       2.8-3.fc15.x86_64
    Erase   kernel-2.6.38.4-20.fc15.x86_64
    Install kernel-2.6.38.6-27.fc15.x86_64
    Erase   kernel-devel-2.6.38.4-20.fc15.x86_64
    Install kernel-devel-2.6.38.6-27.fc15.x86_64
    Updated kernel-headers-2.6.38.6-26.rc1.fc15.x86_64
    Update                 2.6.38.6-27.fc15.x86_64
    Updated perf-2.6.38.6-26.rc1.fc15.x86_64
    Update       2.6.38.6-27.fc15.x86_64
    Updated rsyslog-5.7.9-2.fc15.x86_64
    Update          5.7.9-3.fc15.x86_64
history info

Can the same thing be accomplished using urpmi and if so, how?
Glenn
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
User avatar
Glenn
 
Posts: 15
Joined: May 21st, '11, 01:55
Location: Salem, Mass

Re: URPMI usege.

Postby ahmad » May 24th, '11, 01:03

AFAIK, no, there's nothing like that in urpm*... you may wish to open an enhancement bug report against urpmi in bugzilla.
ahmad
 
Posts: 336
Joined: Mar 22nd, '11, 20:18
Location: Egypt

Re: URPMI usege.

Postby juergen_harms » May 24th, '11, 07:43

I agree that having a record of urpmi and urpme actions and history would be a valuable tool. One item of information you are looking for is provided by
    rpm -qa --last
This instruction provides a list of installed packages with installation dates, sorted last package installed first. It has the inconvenience that rpm only knows about currently installed packages and does not inform about packages that had been installed, but removed. Spartiate, but at least something
juergen_harms
 
Posts: 130
Joined: Mar 30th, '11, 22:36


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron