Unix Technical Forum

deleted /var/log/packages

This is a discussion on deleted /var/log/packages within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi there, unfortunately I deleted /var/log/packages and more unfortunately I didn't put /var/log in my backup list. Does anyone ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 09:09 AM
Lars Behrens
 
Posts: n/a
Default deleted /var/log/packages

Hi there,

unfortunately I deleted /var/log/packages and more unfortunately I didn't
put /var/log in my backup list.

Does anyone know what I could do about it? Maybe the fastest way would be to
reinstall Slackware completely... But how about the additional stuff I
installed, how can I find out what's not in Slackware and thus should be
reinstalled to get the in formation into /var/log/packages?

Is there a clever idea that didn't come to my mind?
TIA

--
Cheerz Lars
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 09:09 AM
No_One
 
Posts: n/a
Default Re: deleted /var/log/packages

On 2005-06-08, Lars Behrens <Spam.Buster@web.de> wrote:
> Hi there,
>
> unfortunately I deleted /var/log/packages and more unfortunately I didn't
> put /var/log in my backup list.
>
> Does anyone know what I could do about it? Maybe the fastest way would be to
> reinstall Slackware completely... But how about the additional stuff I
> installed, how can I find out what's not in Slackware and thus should be
> reinstalled to get the in formation into /var/log/packages?
>
> Is there a clever idea that didn't come to my mind?
> TIA
>


Try checking in the directory /var/log/scripts there should be a list of
scripts one for each package name...assuming you didn't delete this
directory.

Should contain most if not all the packages.

ken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 09:09 AM
Lars Behrens
 
Posts: n/a
Default Re: deleted /var/log/packages

No_One wrote:

> Try checking in the directory /var/log/scripts there should be a list of
> scripts one for each package name...assuming you didn't delete this
> directory.
>
> Should contain most if not all the packages.


Thanks, but I deleted the whole log directory.

--
Cheerz Lars
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 09:09 AM
Grant Coady
 
Posts: n/a
Default Re: deleted /var/log/packages

On Wed, 08 Jun 2005 11:05:56 +0200, Lars Behrens <Spam.Buster@web.de> wrote:
> > Should contain most if not all the packages.

>
> Thanks, but I deleted the whole log directory.


So back it up next time Didn't break machine, just made future
admin of box a little more interesting. Stuff happens.
--Grant.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 09:09 AM
LiNuCe
 
Posts: n/a
Default Re: deleted /var/log/packages

Wed, 08 Jun 2005 11:05:56 +0200 - Lars Behrens <Spam.Buster@web.de> :
> No_One wrote:
>
> > Try checking in the directory /var/log/scripts there should be a
> > list of scripts one for each package name...assuming you didn't
> > delete this directory.
> >
> > Should contain most if not all the packages.

>
> Thanks, but I deleted the whole log directory.


You should better reinstall Slackware. It will be a quicker, cleaner
solution. And I'm sure next time you will take care of your /var/log
directory

--
LiNuCe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 09:09 AM
Ioannis A. bouhras
 
Posts: n/a
Default Re: deleted /var/log/packages

Grant Coady wrote:

>
> On Wed, 08 Jun 2005 11:05:56 +0200, Lars Behrens <Spam.Buster@web.de>
> wrote:
>> > Should contain most if not all the packages.

>>
>> Thanks, but I deleted the whole log directory.

>
> So back it up next time Didn't break machine, just made future
> admin of box a little more interesting. Stuff happens.
> --Grant.


So, next time ..... .bashrc

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 09:09 AM
Grant Coady
 
Posts: n/a
Default Re: deleted /var/log/packages

On Wed, 08 Jun 2005 12:32:33 +0300, "Ioannis A. bouhras" <ioabuh@unixfor.gr> wrote:
> So, next time ..... .bashrc
>
> alias rm='rm -i'
> alias cp='cp -i'
> alias mv='mv -i'


Only wimps do alias, log into another unix box, BOOM! Bad habits
set in. IMHO, of course. How many times would you wipe a filetree
before pausing to look at command line _before_ hit [Enter] ?

)

--Grant.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 09:09 AM
Lars Behrens
 
Posts: n/a
Default Re: deleted /var/log/packages

LiNuCe wrote:

>> Thanks, but I deleted the whole log directory.

>
> You should better reinstall Slackware. It will be a quicker, cleaner


Ok, I will do a swaret --install -a

> solution. And I'm sure next time you will take care of your /var/log
> directory


Me too. But honestly I simply didn't think of the packages branch, neither
when setting up the backup nor when deleting the log directory.

--
Cheerz Lars
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 09:09 AM
Grant Coady
 
Posts: n/a
Default Re: deleted /var/log/packages

On Wed, 08 Jun 2005 12:38:33 +0200, Lars Behrens <Spam.Buster@web.de> wrote:
>
> Me too. But honestly I simply didn't think of the packages branch, neither
> when setting up the backup nor when deleting the log directory.


symlinked --Grant.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 09:09 AM
Loki Harfagr
 
Posts: n/a
Default Re: deleted /var/log/packages

Le Wed, 08 Jun 2005 10:47:44 +0200, Lars Behrens a écrit*:

> Hi there,
>
> unfortunately I deleted /var/log/packages and more unfortunately I didn't
> put /var/log in my backup list.
>
> Does anyone know what I could do about it? Maybe the fastest way would be to
> reinstall Slackware completely... But how about the additional stuff I
> installed, how can I find out what's not in Slackware and thus should be
> reinstalled to get the in formation into /var/log/packages?
>
> Is there a clever idea that didn't come to my mind?


A quick idea, if you have a slackware deposit or if you mount
the install cd, cd to the slackware/ dir and check like yhis :
# upgradepkg --dry-run ap/*.tgz |grep '(already installed).$' |cut -d' ' -f1

would list the ap/ packages you installed.


# upgradepkg --dry-run */*.tgz |grep '(already installed).$' |cut -d' ' -f1

would list the slackware CD or deposit, packages you installed.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:43 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com