I need to reinstall all packages as I accidently deleted parts of /usr (doah!)
but can't figure out how to get slapt-get to reinstall all packages from a to xap, etc
thanks for any help!
(SOLVED) Slapt-get --reinstall question
(SOLVED) Slapt-get --reinstall question
Last edited by linus72 on 16. Dec 2011, 21:11, edited 1 time in total.
Re: Slapt-get --reinstall question
Code: Select all
for i in `ls /var/log/packages/|sed "s/\(.*\)-\(.*\)-\(.*\)-\(.*\)/\1/"`; do slapt-get -i --reinstall $i; done
Re: Slapt-get --reinstall question
Ok that looks good but it didnt work
it just keeps updating
I removed the -u but it still doesn't work...
it just keeps updating
I removed the -u but it still doesn't work...
Re: Slapt-get --reinstall question
no, it keeps updating the package lists infinitum, but no packages are downloaded or upgraded..
Re: Slapt-get --reinstall question
Ok
thanks Gapan and Shador!
it all worked out and I have two very helpful scripts!
thanks!
thanks Gapan and Shador!
it all worked out and I have two very helpful scripts!
thanks!
Re: Slapt-get --reinstall question
I learned the hard way that after executing the reinstall-everything script you should do a lilo -v before reboot. I got a "Kernel setup stack overlaps lilo second stage" error and couldn't boot into Salix.linus72 wrote:...it all worked out and I have two very helpful scripts!
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
― George Orwell, 1984
Re: Slapt-get --reinstall question
Never hit such a problem myself as I'm using grub2 on my systems. But yes this can happen as the kernel package is reinstalled also, i.e. the kernel image /boot/vmlinuz-* is recreated and the fs can put the new file on different blocks (actually it's free to do so even when files are not modified at all, but most common fs as of now don't unless you e.g. use defragmentation of course). The usage of blocklists is one major downside lilo has.laprjns wrote:I learned the hard way that after executing the reinstall-everything script you should do a lilo -v before reboot. I got a "Kernel setup stack overlaps lilo second stage" error and couldn't boot into Salix.linus72 wrote:...it all worked out and I have two very helpful scripts!
Anyway, I added a note mentioning this problem to the wiki.