LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 08-12-2005, 10:18 PM   #1
ag2uki
Member
 
Registered: Oct 2004
Location: Yogyakarta, Indonesia
Distribution: Mandrake 9.0, 9.1, 9.2, 10.0
Posts: 84

Rep: Reputation: 16
the last installed deb package, how ?


Hi all! I'm really newbie in using debian. But, I've used mandrake for about 2 years. In debian, how could we find the last package we have installed ?
In mandrake, or any other rpm-based distro, we could find it easily using this following command:
$ rpm -qa --last
and then, it shows our installed packages sorted by date-time.

Is there any similar command in dpkg ?
Sometimes, we have to know what the last package we have installed in our system.
 
Old 08-12-2005, 11:58 PM   #2
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 31
That information is in /var/log/dpkg.log.
 
Old 08-13-2005, 12:41 AM   #3
ag2uki
Member
 
Registered: Oct 2004
Location: Yogyakarta, Indonesia
Distribution: Mandrake 9.0, 9.1, 9.2, 10.0
Posts: 84

Original Poster
Rep: Reputation: 16
Question

I didn't find those file!
 
Old 08-13-2005, 08:31 AM   #4
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 31
Look for it by opening a terminal with the commands below.

Code:
$ su
Password:
# gedit /var/log/dpkg.log
 
Old 08-14-2005, 09:57 PM   #5
ag2uki
Member
 
Registered: Oct 2004
Location: Yogyakarta, Indonesia
Distribution: Mandrake 9.0, 9.1, 9.2, 10.0
Posts: 84

Original Poster
Rep: Reputation: 16
No!
I meant, there's no file named dpkg.log in /var/log/
Does it really exist in your system, Xian ?


regards
ag2uki
 
Old 08-14-2005, 10:55 PM   #6
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 31
Heh. Well, of course. Whatcha think...I made it up?
Here's a snippet:

Code:
# cat /var/log/dpkg.log
2005-08-14 16:37:14 status half-configured kernel-image-2.6.8-1-bs 10.00.Custom
2005-08-14 16:37:19 status installed kernel-image-2.6.8-1-bs 10.00.Custom
2005-08-14 16:41:43 install sysv-rc-bootsplash <none> 1.0.0-5
2005-08-14 16:41:43 status half-installed sysv-rc-bootsplash 1.0.0-5
2005-08-14 16:41:44 status unpacked sysv-rc-bootsplash 1.0.0-5
2005-08-14 16:41:44 status unpacked sysv-rc-bootsplash 1.0.0-5
2005-08-14 16:41:44 status unpacked sysv-rc-bootsplash 1.0.0-5
2005-08-14 16:41:44 status half-configured sysv-rc-bootsplash 1.0.0-5
2005-08-14 16:41:44 status installed sysv-rc-bootsplash 1.0.0-5
2005-08-14 16:57:29 status installed nvidia-glx 1.0.7667-3
2005-08-14 16:57:37 remove nvidia-glx 1.0.7667-3 1.0.7667-3
2005-08-14 16:57:37 status half-configured nvidia-glx 1.0.7667-3
2005-08-14 16:57:37 status half-installed nvidia-glx 1.0.7667-3
2005-08-14 16:57:41 status config-files nvidia-glx 1.0.7667-3
2005-08-14 16:57:41 purge nvidia-glx 1.0.7667-3 1.0.7667-3
2005-08-14 16:57:41 status config-files nvidia-glx 1.0.7667-3
2005-08-14 16:57:41 status config-files nvidia-glx 1.0.7667-3
2005-08-14 16:57:41 status config-files nvidia-glx 1.0.7667-3
2005-08-14 16:57:41 status config-files nvidia-glx 1.0.7667-3
2005-08-14 16:57:41 status config-files nvidia-glx 1.0.7667-3
2005-08-14 16:57:41 status not-installed nvidia-glx <none>
</snip>
Yeah, that's me purging nvidia-glx after installing a custom kernel.
I then went on to use the source nvidia package and it worked fine.

Last edited by Xian; 08-14-2005 at 10:57 PM.
 
Old 08-15-2005, 05:44 AM   #7
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
I believe the that file only contains entries of packages directly installed by dpkg, not apt-get.

You may wish to look at /var/log/aptitude if you've used aptitude.
 
Old 08-15-2005, 08:44 AM   #8
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,176

Rep: Reputation: 54
The dpkg log lists information on files installed by apt. (Which I didn't know until today...Thanks for the information). I just ran "apt-get upgrade" and checked /var/log/dpkg.log and information from today is there. Nice to know....Now I may be able to figure out what packages cause problems the next time I break something doing "apt-get dist-upgrade".
 
  


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
How to make deb package chrisstooss Debian 6 09-16-2005 06:21 PM
"Repair permissions" - installed .deb package achallenger1 Debian 3 08-21-2005 04:49 PM
How to install deb package tstrickland Linux - Newbie 10 07-21-2005 07:39 PM
how can I create a .deb from an installed package? monkeyman2000 Debian 5 06-16-2005 08:56 PM
RPM package manager says package needs to be installed. But I already installed it! nick623 Linux - Software 2 05-24-2005 03:15 AM


All times are GMT -5. The time now is 10:46 PM.

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