LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-05-2007, 02:15 AM   #1
technomeister
Member
 
Registered: Oct 2005
Distribution: Slackware loved and lost, Ubuntu current.
Posts: 34

Rep: Reputation: 15
rm -r /var/log - oops - pkgtool package list gone


as title suggests

i'm guessing there's no way to get them back?
 
Old 02-05-2007, 02:53 AM   #2
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
I dont thnk so ... lol
lol
lol

anyways remember :
alias rm = rm -i

 
Old 02-05-2007, 03:25 AM   #3
technomeister
Member
 
Registered: Oct 2005
Distribution: Slackware loved and lost, Ubuntu current.
Posts: 34

Original Poster
Rep: Reputation: 15
It's a stupid place for them to be kept anyway - since when did deleting log files break an application? they aren't even strictly log files, they're configuration files and should be stored in /etc (or even /root) accordingly

Quote:
Originally Posted by duryodhan
alias rm = rm -i
that could come in handy...
 
Old 02-05-2007, 03:59 AM   #4
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 904

Rep: Reputation: 693Reputation: 693Reputation: 693Reputation: 693Reputation: 693Reputation: 693
I did that once...

One thing you can do is "reinstall" everything by using installpkg. Instead of merging in the *.new files in /etc, you can just delete them (because they're already current). The trickiest part is packages you installed via installpkg that aren't official packages.

Good luck.
 
Old 02-05-2007, 05:01 AM   #5
technomeister
Member
 
Registered: Oct 2005
Distribution: Slackware loved and lost, Ubuntu current.
Posts: 34

Original Poster
Rep: Reputation: 15
yea, i've not got anywhere near a full Slackware install though - i'd spent ages figuring out which packages were essential, to have the slimmest possible system. A few non-official packages are in there, most of which I can remember though.

I'm thinking of a script that would scan the contents of all the official packages, then check the system for those files to build a list of installed packages, which could then be used to installpkg what was needed...

time to get that scripting for dummies book out I think.
 
Old 02-05-2007, 06:06 AM   #6
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
technomeister, don't you have any backup?
 
Old 02-05-2007, 06:22 AM   #7
LittleA
LQ Newbie
 
Registered: Feb 2003
Location: in a house
Distribution: Slackware/Linux From scratch
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by technomeister
as title suggests

i'm guessing there's no way to get them back?
Why do you want them back ? Chances are you won`t need them anyway ...
 
Old 02-05-2007, 06:57 AM   #8
technomeister
Member
 
Registered: Oct 2005
Distribution: Slackware loved and lost, Ubuntu current.
Posts: 34

Original Poster
Rep: Reputation: 15
no backups - i'd never bothered up until now since this is only my second clean install of Linux, and having to do it all again might not be such a bad thing since i'm still learning what the best way of working is. It's a good point though, and now that i've got a pretty customised system which works well, i think now might be the time to start making them.

Quote:
Originally Posted by LittleA
Why do you want them back ? Chances are you won`t need them anyway ...
Most of them, probably not. I'm sure i'll eventually need to upgrade some packages with newer versions though, some of which I may have to compile from source, and from past experience it's best to remove all traces of an old version rather than just installing a new one over the top and hoping for the best...
 
Old 02-05-2007, 08:42 AM   #9
LittleA
LQ Newbie
 
Registered: Feb 2003
Location: in a house
Distribution: Slackware/Linux From scratch
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by technomeister
Most of them, probably not. I'm sure i'll eventually need to upgrade some packages with newer versions though, some of which I may have to compile from source, and from past experience it's best to remove all traces of an old version rather than just installing a new one over the top and hoping for the best...
Right, and my past experiences tells me you don`t need them, they just make live on a Slack-machine a little more simple.
But, if you really want to install a new one ( even stuff compiled from scratch ), what is keeping you of installing just that one(1) package again and promptly remove it after you installed it, before you install the fancy new things ?
 
Old 02-05-2007, 10:08 AM   #10
technomeister
Member
 
Registered: Oct 2005
Distribution: Slackware loved and lost, Ubuntu current.
Posts: 34

Original Poster
Rep: Reputation: 15
yea you're right... i'm probably being overly pedantic, and it would make things simpler, with no easy way to remove any more packages just to see if I could minimalise things any further and then ending up breaking things
 
Old 02-05-2007, 05:26 PM   #11
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 172

Rep: Reputation: 21
You need the name of the installed packages in case of upgrading, because you need to REMOVE them. It's not a problem to not remove them, but you are going to have some wasted disk space.

On the other hand a scenario: You want to upgrade from Slackware 10.2 to Slackware 11. koffice-1.5.2 is replacing koffice-1.4.1. After the upgrade you "should" remove old koffice since some (few in that case) files are in /usr/doc

In last resort you can remove the package from cd with removepkg /cd_path/koffice-1.4.1_bla_bla.tgz

or (if have the nerves, or a backup) you can issue removepkg /old_slack_dvd_path/..../packages/*.tgz AFTER the FULL-FORCED upgrade (upgradepkg --reinstall). removepkg have some IQ and it will not remove packages that exists in other packages. So, it seems that you will be safe.

Excuse the capitals :-)

Last edited by ludist; 02-05-2007 at 05:32 PM.
 
Old 02-05-2007, 06:59 PM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Well, you can recover files that you've just deleted, however, by the time this reaches you it will be too late ... oh well
 
Old 02-06-2007, 12:37 AM   #13
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
What fs is yours?
There are some recovery tools for ext2, as well some for ext3.
If you have windows, you can even recover there.

Last edited by Alien_Hominid; 02-06-2007 at 12:39 AM.
 
  


Reply



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
List of Installed Programs not in pkgtool s4006576 Slackware 8 08-16-2006 10:28 AM
Recreate a package from /var/log/package/ Vgui Slackware 2 08-31-2005 10:59 PM
Removed /var/logs and pkgtool is fucked up kopikat Slackware 2 02-03-2005 03:26 PM
How is the file list in /var/log/packages/* generated? hollywoodb Slackware 4 09-19-2004 09:16 AM
How do I upgrade a package or lib without using rpm or pkgtool? purpleburple Linux - General 4 10-16-2002 08:45 PM

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

All times are GMT -5. The time now is 04:42 AM.

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