LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-28-2006, 06:56 PM   #1
babyphil
Member
 
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
jong357
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
ckoniecny
Member
 
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
njmf
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
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,514

Rep: Reputation: 90
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
njmf
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
gbonvehi
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..):
Code:
++========================================
||
||   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:
Code:
PACKAGE NAME:     aaa_base-10.2.0-noarch-2
COMPRESSED PACKAGE SIZE:     8 K
UNCOMPRESSED PACKAGE SIZE:     80 K
PACKAGE LOCATION: /var/log/mount/slackware/a/aaa_base-10.2.0-noarch-2.tgz
PACKAGE DESCRIPTION:
aaa_base: aaa_base (Basic Linux filesystem package)
aaa_base:
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.
aaa_base:
aaa_base:
aaa_base:
aaa_base:
aaa_base:
aaa_base:
FILE LIST:
./
bin/
dev/
etc/
etc/X11/
etc/slackware-version

Last edited by gbonvehi; 03-01-2006 at 05:03 AM.
 
  


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
/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


All times are GMT -5. The time now is 06:46 AM.

Main Menu
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