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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| > 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 |
| ||||
| meridia - http://www.bestrxpills.com Message posted via: ===================== www.linuxpackages.net/forum www.linuxpackages.net Expanding the world of Slackware ===================== |