LinuxQuestions.org
Help answer threads with 0 replies.
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: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,640

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
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: 53
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.
 
Old 10-30-2019, 04:25 PM   #8
cesarsj
Member
 
Registered: Mar 2019
Location: Patos de Minas, MG, Brazil
Distribution: Slackware
Posts: 159

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
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,308

Rep: Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922
Quote:
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
jrch
Member
 
Registered: Mar 2006
Posts: 158

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.

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

Rep: Reputation: 114Reputation: 114
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
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
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
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,397
Blog Entries: 3

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
/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
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
Quote:
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
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
If you have shaky hands or suffer from "mouse-arm" you might want to give trackballs a try:
https://www.logitech.com/en-us/produ...rackball-mouse
https://www.logitech.com/en-us/produ...trackball-m570

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.

PS:
I am not affiliated with logitech.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:43 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration