Unix Technical Forum

mangled /var/log/packages

This is a discussion on mangled /var/log/packages within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I've just realised that I've mangled my /var/log/packages database. I installed 10.2 on a spare partition of my 10.0 ...


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, 11:31 AM
Paul Kinsler
 
Posts: n/a
Default mangled /var/log/packages

I've just realised that I've mangled my /var/log/packages
database.

I installed 10.2 on a spare partition of my 10.0 box;
then after tweaking the configs swapped over. The catch
is I reused the old /var, but didn't copy the 10.2
/var/log/packages over. Since I've subsequently installed
10-15 new packages, I've created a mess; the old 10.0
database and some new stuff. And I've deleted the 10.2
/var/log/packages.

Any suggestions for cleaning up the mess? Like finding
a /var/log/packages for an install-everything 10.2 and
deleting non-installed packages from it?

--
#Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 11:31 AM
Joost Kremers
 
Posts: n/a
Default Re: mangled /var/log/packages

Paul Kinsler wrote:
> I installed 10.2 on a spare partition of my 10.0 box;
> then after tweaking the configs swapped over. The catch
> is I reused the old /var, but didn't copy the 10.2


why did you reuse the old /var? AFAIK there's nothing in there that needs
keeping.

> Any suggestions for cleaning up the mess? Like finding
> a /var/log/packages for an install-everything 10.2 and
> deleting non-installed packages from it?


don't forget /var/log/scripts.

i'd send you a tar ball of mine, but i'm running slackintosh 10.1, so
that's pretty much pointless. perhaps someone else can.

--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 11:31 AM
cashmir
 
Posts: n/a
Default Re: mangled /var/log/packages

Paul Kinsler wrote:
> I've just realised that I've mangled my /var/log/packages
> database.
>
> I installed 10.2 on a spare partition of my 10.0 box;
> then after tweaking the configs swapped over. The catch
> is I reused the old /var, but didn't copy the 10.2
> /var/log/packages over. Since I've subsequently installed
> 10-15 new packages, I've created a mess; the old 10.0
> database and some new stuff. And I've deleted the 10.2
> /var/log/packages.
>
> Any suggestions for cleaning up the mess? Like finding
> a /var/log/packages for an install-everything 10.2 and
> deleting non-installed packages from it?
>


maybe someone can mail it to you.
( i have upgraded ).

but also you could do a reinstall on the spare partition.
( you still have that...? )

mount that partition on , lets say, /mountpoint and
put the cd in the drive.
cd to it in a console ( to ..../slackware ) and run :

installpkg -root /mountpoint *.*

and just let it run.
( you can do some surfing then... )

after 20-30 min's you'll have a new db in /mountpoint/var/log/packages.
then you'll need to add the packages you installed afterwards.

cashmir
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 11:32 AM
Mark Hill
 
Posts: n/a
Default Re: mangled /var/log/packages

On Fri, 14 Oct 2005 17:51:43 +0100,
Paul Kinsler wrote:

> Like finding a /var/log/packages for an install-everything 10.2 and
> deleting non-installed packages from it?


You can derive a full package list for 10.2 from CHECKSUMS.md5, which is
found on a 10.2 CD/mirror. I kluged together the following, which lists
all the packages in the /slackware package tree.

awk '/.\/slackware\/.*\/.*tgz$/ {print $2}' CHECKSUMS.md5 | \
sed 's/.tgz//' | cut -d '/' -f 4 | sort

You could then use diff to compare the output from that and
'ls -1 /var/log/packages/'.

--
Mark Hill
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 11:38 AM
Paul Kinsler
 
Posts: n/a
Default Re: mangled /var/log/packages

> Paul Kinsler wrote:
> > I installed 10.2 on a spare partition of my 10.0 box;
> > then after tweaking the configs swapped over. The catch
> > is I reused the old /var, but didn't copy the 10.2


OK, well since I had to install 10.2 somewhere else anyway,
I just:

a) deleted all the /var/log/packages /var/log/scripts files
older than my install date (I'll installed some /usr/local
stuff and thought I may as well keep those entries)

b) copied over the /var/log/packages /var/log/scripts from the
new install. Probably there were some difference, but
until some patch arrives and I try to upgradepkg something
with a missing entry I won't notice (and even then I can
reinstall the orig, then upgrade, which should sort things out)

Joost Kremers <joostkremers@yahoo.com> wrote:
> why did you reuse the old /var? AFAIK there's nothing in
> there that needs keeping.


/var/qmail
crontabs
a news spool
some stuff in /var/tmp
I like to keep old log files hanging about (for a year or thereabouts)
I dont have a spare /var partition, so I reuse it.
/var/www

> don't forget /var/log/scripts.


I would have done, ta.


--
#Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 11:45 AM
wardrobe
 
Posts: n/a
Default Re:mangled /var/log/packages

meridia - http://www.bestrxpills.com

Message posted via:
=====================
www.linuxpackages.net/forum
www.linuxpackages.net
Expanding the world of Slackware
=====================
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:00 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