How can I list recently installed packages without /var/log/dpkg.log available?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How can I list recently installed packages without /var/log/dpkg.log available?
Summary
1. I had live knoppix on a usb stick, but it won't boot anymore. However, I
do have a file image of the stick, and can view the files on it. So I'd like to
list what packages I installed on that system since say a year ago, showing the
dates of installation.
2. However, the file /var/log/dpkg.log doesn't exist, so is there another way I
can list the packages?
Full Details
3. I've added the following just to show that I HAVE tried to recover the system
on the usb stick but without success.
4. When booting the usb stick, it fails in the following way. At the boot
prompt, after pressing ENTER, I get 4 error messages of the form "ERROR xxxx
reading SECTOR xxxxx". The first message is "CHS: ERROR 8001 READING SECTOR
22815 (12/8/32)". After the 4th error message it just stops, sits there, and
nothing else happens.
5. Prior to the usb stick not booting at all, the system ran but malfunctioned.
At that stage I was able to create a file image of the stick on another drive,
using ddrescue.
6. I ran reiserfsck* on the filesystem that's within the file image, but it
didn't succeed in fixing it. (*Including using --badblocks, --rebuild-tree, and
--rebuild-sb.) One of the error messages that reiserfsck gives is "Fatal
corruptions exist".
Last edited by winger9; 01-19-2022 at 03:19 PM.
Reason: Was going to add a tag but no facility to do so.
Many thanks rokytnji #2 and ondoho #3. Unfortunately the directory
/var/log/installer doesn't exist, and /var/log/apt/history.log is
empty.
Knoppix is a customisation of Debian, so I presume the customisers decided not
to include certain logging (most logging?). I've had a flick through the
/var/log directory, and most of the subdirectories are empty. Also, the log
files in the non-empty directories are empty.
Sorry for being so dim. Could you tell me what to chroot to please. Also, could
you tell me what you mean by "apt*", and what you mean by "try to use atp*"?
Looking back at what I wrote 17 days ago I must have thought you had installed Knoppix, something I last did too many years ago to remember anything about it. Looking at output of mount while booted to Knoppix 8.6 I'm at a loss what to suggest you would chroot to. Klaus Knopper has a mailing list debian-knoppix at lists.debian.org. I suggest you ask for suggestions there.
@OP. I'm not quite sure what you're looking at. If it's the main Knoppix overlay (KNOPPIX) then there are probably no log files at all, as Knoppix is a live system supposed to be run from read-only media (CD/DVD) among others. You should be looking at its persistent store instead. It's probably a partition after the main one, but could by a file image as well.
Good thinking descendant_command (#10). I have got /var/lib/dpkg/status on my image-file of the knoppix stick. I'll call it the "faulty stick".
The problem with comparing that /var/lib/dpkg/status with one on a stock knoppix is as follows.
I could create a new stock knoppix on a usb stick and compare its /var/lib/dpkg/status with the one on the image-file of the faulty stick. But that will list every package I've installed since day one.
I actually want to list what packages I installed on the faulty stick since about a year ago (and showing the dates of installation).
The following info might or might not help.
Presently I have 3 usb sticks that have the same basic knoppix on them. I'll call them sticks 1, 2 (the faulty one), and 3.
But I use the 3 sticks at different times, and I believe that on all 3 I have installed different packages (sometimes the same packages). As I say, I don't know if this info helps in finding a solution.
EDIT (10feb22):
1. I've just realised that my above explanation about the 3 sticks is incomplete. I should have added the following.
2. The dates I've specified below aren't exact, but illustrate the sequence.
3. STARTING POINT: I installed live knoppix on stick 1 on 1jan16. Then between 1jan16 and 1jan17, I installed various packages on it.
4. On 1jan17, I cloned stick 1 onto stick 2. I subsequently installed more packages onto stick 2.
5. On 1jan20 I cloned stick 1 onto stick 3. At the point of the cloning, stick 1 may have had more packages installed on it (by me) than were there on 1jan17 (4.).
I subsequently installed more packages onto stick 3.
Last edited by winger9; 02-10-2022 at 04:57 PM.
Reason: Removed unnecessary newlines.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.