Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-28-2006, 06:56 PM   #1
Registered: Jun 2004
Location: Texas
Distribution: Solaris 10 / Slackware 10.1
Posts: 68

Rep: Reputation: 15
/var/log/packages is empty!

I have a system with many applications installed and running perfectly, however my /var/log/packages directory is empty with the exception of x11 - related packages, I did upgrade x11 but wtf happened to the other packages?!
Old 02-28-2006, 08:51 PM   #2
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
This happened to someone else here a little while back. Offhand, I'd say your boned. Really, there isn't much you can do. If I were you, I'd write a script similar to the unix log rotate deal. Have cron tarball up your /var/log/packages directory a couple minutes after you boot. Have it rotate the file names for 10 days and then delete the oldest one on the tenth day...

I don't know what else to tell you except to re-install. Maybe someone else will have an idea.
Old 02-28-2006, 09:10 PM   #3
Registered: Oct 2005
Posts: 162

Rep: Reputation: 30
Thats kind of wierd that all of your logs are missing from /var/log/packages. Does anyone else log into this machine?
Old 03-01-2006, 03:55 AM   #4
LQ Newbie
Registered: Feb 2006
Distribution: Slackware 10.2, LFS 6.1, Ubuntu Breezy, WinXP
Posts: 17

Rep: Reputation: 0
Shit, I can't see anything in /var/log/packages/, either! Could someone please post some of files (two or three) in it, so I could try to make a script to generate them.
Old 03-01-2006, 04:32 AM   #5
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,634

Rep: Reputation: 144Reputation: 144
I guess you could modify /sbin/installpkg to not install a package but write only its /var/log/packages entry. To do this you got to have all packages you installed. It would be possbile too, I think, to check if the files in the package-tgz-file can be found on your system (i. e. if you installed it or if it is a not installed package). Sorry I can't help more with this, but in /sbin/installpkg you will find the way the package files are generated.
Old 03-01-2006, 04:50 AM   #6
LQ Newbie
Registered: Feb 2006
Distribution: Slackware 10.2, LFS 6.1, Ubuntu Breezy, WinXP
Posts: 17

Rep: Reputation: 0
Alright, thanks, it should not be a problem - if there is a way, I'll find it.
Old 03-01-2006, 04:57 AM   #7
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
To know which package contain which files you could parse slackware/MANIFEST.bz2, actually, you could recreate all packages "logs" by parsing slackware/MANIFEST.bz2 correctly and adding the info from the .txt files that corresponds to the package (I don't know if the package size and location shown on logs are important, I think they aren't).
I don't have time these days, but if you still can't do it at the weekend I could give you some help with it.

From MANIFEST.bz2 (I took some lines only..):
||   Package:  ./a/aaa_base-10.2.0-noarch-2.tgz
drwxr-xr-x root/root         0 2005-09-10 15:40:48 ./
drwxr-xr-x root/bin          0 1997-10-06 01:10:09 bin/
drwxr-xr-x root/root         0 1997-10-06 01:10:09 dev/
drwxr-xr-x root/root         0 2005-09-10 15:40:48 etc/
drwxr-xr-x root/root         0 2001-02-05 17:47:32 etc/X11/
-rw-r--r-- root/root        17 2005-09-10 15:40:48 etc/slackware-version
The log at /var/log/packages/aaa_base-10.2.0-noarch-2:
PACKAGE NAME:     aaa_base-10.2.0-noarch-2
PACKAGE LOCATION: /var/log/mount/slackware/a/aaa_base-10.2.0-noarch-2.tgz
aaa_base: aaa_base (Basic Linux filesystem package)
aaa_base: Sets up the empty directory tree for Slackware and adds an email to
aaa_base: root's mailbox welcoming them to Linux. :)  This package should be
aaa_base: installed first, and never uninstalled.

Last edited by gbonvehi; 03-01-2006 at 05:03 AM.
Old 10-30-2019, 04:25 PM   #8
Registered: Mar 2019
Location: Patos de Minas, MG, Brazil
Distribution: Slackware
Posts: 141

Rep: Reputation: Disabled
I have this problem on a storage server. Either I didn't quite understand the answer above or it didn't help me.
Old 10-30-2019, 05:29 PM   #9
Senior Member
Registered: Apr 2015
Posts: 1,650

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
Originally Posted by cesarsj View Post
I have this problem on a storage server. Either I didn't quite understand the answer above or it didn't help me.
current have a symlink /var/log/packages to /var/lib/packages

Im not sure if need reinstall base , or slackpkg ... no remember what pacakge do the symlink to the correct /var/lib

if you have var/lib/packages with files ..only delete /var/log/packages and symlink to var/lib

Last edited by USUARIONUEVO; 10-30-2019 at 05:32 PM.
Old 10-31-2019, 10:49 AM   #10
Registered: Mar 2006
Posts: 153

Rep: Reputation: 15
How I created (and escapted) a similar problem...

Not sure if this will help, but here is what I did to create a similar scary situation a few weeks ago:

First, I'm 76 and hands sometimes get shaky. On occasion, when using a mouse, I try to double-click to open a folder, but because of slight shaking, THAT folder actually winds up being MOVED into a nearby folder (in the list). I think in one case the folder remained in the list, but empty, and the contents were moved, into a new folder of same name, INSIDE another folder.

Since the incident to be described, it has not happened again, thankfully.

This is scary if you are root. Once, it 'happened' (correction, I DID it...) while I WAS root (!). It was a major folder, and it wound up inside another folder - not right next to, but two folders away. Having 'found it', I moved it BACK to the / directory - wild emotions in check.

On rebooting, much of the system was GONE. Many things did not work at all. BUT, luckily, after a couple reboots, it ALL CAME BACK. System has been fine every since, thankfully. Now I'm VERY CAREFUL with the mouse (root OR user) while working in a file-manager (thunar). I'm thinking about doing as much as I can from command line in future - more difficult, therefore more care required by nature. Benefit: Learning more command line.

Someone in the Linux / Slackware design pool obviously foresaw this possibility and built in a fail-safe. I think this trumps most of my criticisms of linux in the past. Wow.

Hope this sheds some light for those similarly afflicted. I was very fortunate to find (stumble on) a way out of the mess.

1 members found this post helpful.
Old 10-31-2019, 11:13 AM   #11
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware Current64, PartedMagic, Xubuntu LTS
Posts: 379

Rep: Reputation: 70
Shaky hands: What about frequently making backups?
I always run as root but at 74 my hands are not shaky (yet -- thanks $DEITY). I do mount a "development" directory on /root instead of on /root/works from time to time -- restoring the backup over the resulting mess is the easiest way out ...

Last edited by burdi01; 10-31-2019 at 11:14 AM.
Old 10-31-2019, 12:16 PM   #12
Senior Member
Registered: Oct 2014
Distribution: Slackware
Posts: 1,890

Rep: Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141
Must be a record for resurrecting old threads -- more than 13 years!

@jrch: The problem is not shaky hands. The same thing can happen with trackpads too. This no-questions-asked drag-and-drop behavior is common in GUI file managers in all operating systems. Bad design.
Old 10-31-2019, 12:29 PM   #13
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-current
Posts: 906
Blog Entries: 3

Rep: Reputation: 246Reputation: 246Reputation: 246
/var/log/packages is empty!

That's why we have suckless tools! These are perfect for laptops :-D
Old 10-31-2019, 12:41 PM   #14
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 424

Rep: Reputation: 265Reputation: 265Reputation: 265
Originally Posted by upnort View Post
This no-questions-asked drag-and-drop behavior is common in GUI file managers in all operating systems. Bad design.
Yes, it is. I really hate drag and drop for that reason and I always advise people to use copy/cut and paste instead. Especially Windows Exploder (on-site technician here and I have to deal with a lot of Windows users)

However, I use X File Explorer that prompts on drag and drop. It asks in a little menu if I want to move, copy, link or cancel if anything is dragged. (there are dialog settings for confirmation prompts for pretty much everything). Drag and drop is safe and useful when I get to decide what, if anything, is going to happen.
Old 10-31-2019, 12:56 PM   #15
Senior Member
Registered: Jan 2010
Posts: 2,004

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
If you have shaky hands or suffer from "mouse-arm" you might want to give trackballs a try:

Since I started to use one of above linked trackballs instead of a classic mouse I have not experienced any mouse related pain. It might also help with shaky hands. You can shake as much as you want, if you are not touching the trackball then the mouse will not move.

I am not affiliated with logitech.


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
/var/log/messages is empty, and also dmesg shows nothing beagle2 Linux - General 5 11-08-2005 08:12 AM
/var/log/packages vanished Idle Slackware 3 09-19-2005 12:57 PM
/var/log/messages empty Phathead Slackware 5 12-13-2004 11:43 AM
/var/log/packages gone! PurpleMotion Slackware 1 10-02-2004 03:04 PM
accidently deleted /var/log/packages lennard Slackware 8 06-21-2004 02:15 AM > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration