LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   the last installed deb package, how ? (https://www.linuxquestions.org/questions/debian-26/the-last-installed-deb-package-how-352717/)

ag2uki 08-12-2005 09:18 PM

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.

Xian 08-12-2005 10:58 PM

That information is in /var/log/dpkg.log.

ag2uki 08-12-2005 11:41 PM

I didn't find those file! :(

Xian 08-13-2005 07:31 AM

Look for it by opening a terminal with the commands below.

Code:

$ su
Password:
# gedit /var/log/dpkg.log


ag2uki 08-14-2005 08:57 PM

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


regards
ag2uki

Xian 08-14-2005 09:55 PM

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.

saman007uk 08-15-2005 04:44 AM

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.

m_yates 08-15-2005 07:44 AM

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".


All times are GMT -5. The time now is 05:49 PM.