Debian This forum is for the discussion of Debian Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-12-2005, 09:18 PM
|
#1
|
|
Member
Registered: Oct 2004
Location: Yogyakarta, Indonesia
Distribution: Mandrake 9.0, 9.1, 9.2, 10.0
Posts: 84
Rep:
|
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.
|
|
|
|
08-12-2005, 10:58 PM
|
#2
|
|
Member
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918
Rep:
|
That information is in /var/log/dpkg.log.
|
|
|
|
08-12-2005, 11:41 PM
|
#3
|
|
Member
Registered: Oct 2004
Location: Yogyakarta, Indonesia
Distribution: Mandrake 9.0, 9.1, 9.2, 10.0
Posts: 84
Original Poster
Rep:
|
I didn't find those file! 
|
|
|
|
08-13-2005, 07:31 AM
|
#4
|
|
Member
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918
Rep:
|
Look for it by opening a terminal with the commands below.
Code:
$ su
Password:
# gedit /var/log/dpkg.log
|
|
|
|
08-14-2005, 08:57 PM
|
#5
|
|
Member
Registered: Oct 2004
Location: Yogyakarta, Indonesia
Distribution: Mandrake 9.0, 9.1, 9.2, 10.0
Posts: 84
Original Poster
Rep:
|
No!
I meant, there's no file named dpkg.log in /var/log/
Does it really exist in your system, Xian ?
regards
ag2uki
|
|
|
|
08-14-2005, 09:55 PM
|
#6
|
|
Member
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918
Rep:
|
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 09:57 PM.
|
|
|
|
08-15-2005, 04:44 AM
|
#7
|
|
Member
Registered: Dec 2003
Location: ~root
Distribution: Ubuntu and Debian
Posts: 361
Rep:
|
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.
|
|
|
|
08-15-2005, 07:44 AM
|
#8
|
|
Senior Member
Registered: Aug 2003
Location: Upstate
Distribution: Debian, ubuntu
Posts: 1,153
Rep:
|
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".
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:34 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|