openSUSE Forums > Archives > SLS Archives > ARCHIVES - Linux Tweaks > ARCHIVES - Tips, Tricks & Tweaks » How To Find Out What Was Recently Installed

Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - Linux Tweaks > ARCHIVES - Tips, Tricks & Tweaks
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Tips, Tricks & Tweaks Post your tips, tricks and tweaks about SuSE Linux in here. Please do not ask questions here - this is for factual information

 
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 24-Mar-2008, 01:19
Jonathan R
Guest
 
Posts: n/a
Default

Ok, we have all upgraded or installed something, and then something disastrous happens. At times like these, it's good to know what and when. Here is how;

Code:
rpm -qa --last | more
For me, it gave me these results;

Quote:
gimp-lang-2.4.0-3.7 Sun 23 Mar 2008 09:50:15 PM MST
gimp-2.4.0-3.7 Sun 23 Mar 2008 09:49:37 PM MST
evince-2.20.0-19.7 Sun 23 Mar 2008 09:48:50 PM MST
libpoppler-qt2-0.6.1-5.3 Sun 23 Mar 2008 09:48:44 PM MST
libpoppler-devel-0.6.1-5.3 Sun 23 Mar 2008 09:48:42 PM MST
libpoppler-glib2-0.6.1-5.3 Sun 23 Mar 2008 09:48:38 PM MST
libpoppler-qt4-2-0.6.1-5.3 Sun 23 Mar 2008 09:48:36 PM MST
libpoppler2-0.6.1-5.3 Sun 23 Mar 2008 09:48:34 PM MST
gnome-applets-devel-2.20.0-44.9 Sun 23 Mar 2008 08:47:41 AM MST
epiphany-doc-2.20.1-15.7 Sun 23 Mar 2008 08:47:40 AM MST
gnome-applets-2.20.0-44.9 Sun 23 Mar 2008 08:47:33 AM MST
planner-devel-0.14.2-43.7 Sun 23 Mar 2008 08:47:15 AM MST
python-gnome-extras-2.19.1-5.3 Sun 23 Mar 2008 08:47:11 AM MST
inkscape-0.45.1-106.10 Sun 23 Mar 2008 08:47:04 AM MST
gedit-2.20.0-15.10 Sun 23 Mar 2008 08:46:02 AM MST
dia-0.96.1-41.5 Sun 23 Mar 2008 08:45:43 AM MST
epiphany-2.20.1-15.7 Sun 23 Mar 2008 08:45:13 AM MST
planner-0.14.2-43.7 Sun 23 Mar 2008 08:45:01 AM MST
nautilus-sendto-0.10-73.12 Sun 23 Mar 2008 08:44:52 AM MST
xsane-0.995-0.pm.0 Sun 23 Mar 2008 08:44:49 AM MST
BitTorrent-gtk-4.0.3-115 Sun 23 Mar 2008 08:44:36 AM MST
libpurple-devel-2.4.0-3.2 Sun 23 Mar 2008 08:44:33 AM MST
pidgin-2.4.0-3.2 Sun 23 Mar 2008 08:44:25 AM MST
python-gtk-devel-2.12.0-22.1 Sun 23 Mar 2008 08:44:13 AM MST
libpurple-2.4.0-3.2 Sun 23 Mar 2008 08:44:06 AM MST
tomboy-0.10.0_brainshare08-2.1 Sun 23 Mar 2008 08:43:30 AM MST
f-spot-0.4.1-42.1 Sun 23 Mar 2008 08:42:46 AM MST
f-spot-lang-0.4.1-42.1 Sun 23 Mar 2008 08:41:48 AM MST
tomboy-lang-0.10.0_brainshare08-2.1 Sun 23 Mar 2008 08:41:42 AM MST
silc-toolkit-1.1.6-2.1 Sun 23 Mar 2008 08:41:15 AM MST
python-gtk-2.12.0-22.1 Sun 23 Mar 2008 08:41:05 AM MST
ekiga-2.0.12-1.pm.1 Sun 23 Mar 2008 08:40:49 AM MST
opensuse-updater-gnome-0.4.5-0.1 Sun 23 Mar 2008 08:40:09 AM MST
evolution-pilot-2.12.0-29.6 Sun 23 Mar 2008 08:40:02 AM MST
evolution-devel-2.12.0-29.6 Sun 23 Mar 2008 08:39:58 AM MST
anjuta-2.2.2-18.10 Sun 23 Mar 2008 08:39:44 AM MST
evolution-2.12.0-29.6 Sun 23 Mar 2008 08:39:14 AM MST
gnopernicus-devel-1.1.2-128.4 Sun 23 Mar 2008 08:38:53 AM MST
gnome-pilot-devel-2.0.15-43.4 Sun 23 Mar 2008 08:38:51 AM MST
yelp-2.18.1-58.3 Sun 23 Mar 2008 08:38:45 AM MST
deskbar-applet-2.20.0-10.10 Sun 23 Mar 2008 08:38:39 AM MST
control-center2-devel-2.20.0-36.5 Sun 23 Mar 2008 08:38:33 AM MST
gnome-main-menu-devel-0.9.8-121.1 Sun 23 Mar 2008 08:38:31 AM MST
gnome-main-menu-0.9.8-121.1 Sun 23 Mar 2008 08:38:26 AM MST
gnome-power-manager-2.20.0-29.6 Sun 23 Mar 2008 08:38:18 AM MST
gnome-panel-devel-2.20.0-11.4 Sun 23 Mar 2008 08:38:08 AM MST
[/b]
Now, i could have continued, but that would have been excessive.
  #2 (permalink)  
Old 24-Mar-2008, 04:53
hcvv
Guest
 
Posts: n/a
Default

Quote:
Now, i could have continued, but that would have been excessive.
[/b]
That is why you used more
  #3 (permalink)  
Old 24-Mar-2008, 05:04
Jonathan R
Guest
 
Posts: n/a
Default

Quote:
That is why you used more
[/b]

Maybe I should use less
  #4 (permalink)  
Old 24-Mar-2008, 23:16
Jonathan R
Guest
 
Posts: n/a
Default

You can also do a grep for a particular date. I used Sun 23 Mar 2008.

Here is how I did it.
Code:
rpm -qa --last | grep "Sun 23 Mar 2008"
So now you can specify a date.
  #5 (permalink)  
Old 24-Mar-2008, 23:30
superppl
Guest
 
Posts: n/a
Default

Awesome... I didn't know this could be done!
Bookmarked!
  #6 (permalink)  
Old 25-Mar-2008, 03:01
Jonathan R
Guest
 
Posts: n/a
Default

You can also do a search for a particular package.

Code:
rpm -qa --last | grep "kernel"
Which for me, revealed;

Quote:
rpm -qa --last | grep "kernel"
kernel-xen-2.6.22.17-0.1 Sun 23 Mar 2008 07:00:40 AM MST
kernel-default-2.6.22.17-0.1 Sun 23 Mar 2008 06:57:46 AM MST
kernel-source-2.6.22.17-0.1 Sun 23 Mar 2008 06:28:47 AM MST
nfs-kernel-server-1.1.0-8 Sun 23 Mar 2008 03:29:30 AM MST
linux-kernel-headers-2.6.22-19 Sun 23 Mar 2008 02:56:33 AM MST
[/b]
  #7 (permalink)  
Old 25-Mar-2008, 03:06
hcvv
Guest
 
Posts: n/a
Default

Don't be afraid of the CLI. Learn a bit of using bash. grep is very powerful, and when you know what a pipe (the | character) does a new world will open up :lol:
  #8 (permalink)  
Old 25-Mar-2008, 03:08
oldcpu
Guest
 
Posts: n/a
Default

Quote:
Code:
rpm -qa --last | grep "kernel"
[/b]
The quotes around kernel are not necessary. Once can simply type:
Code:
rpm -qa --last | grep kernel
Another example, lets say one is interested in all rpms that start with "kde". On my PC, if I type:
Code:
rpm -qa --last | grep kde
I obtain many hits, a lot of which have "kde" in the middle of the rpm name.

As yaloki pointed out to me on the IRC channel, in a case like this one can use:
Code:
rpm -qa --last | grep ^kde
which will limit the search to rpms that start with "kde".
  #9 (permalink)  
Old 25-Mar-2008, 03:40
hcvv
Guest
 
Posts: n/a
Default

As I said, try to put a little bit of time in RTFM. The ^kde and other of these construccts are called 'Regular experssions'. Do man re_synrax to read all about it.
  #10 (permalink)  
Old 25-Mar-2008, 03:46
oldcpu
Guest
 
Posts: n/a
Default

Quote:
As I said, try to put a little bit of time in RTFM. The ^kde and other of these construccts are called 'Regular experssions'. Do man re_synrax to read all about it.
[/b]
Thanks for that "man" suggestion. I think you mean "man re_syntax".

Freudian typo.
 
Page 1 of 2 1 2

Bookmarks

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2