LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   [Help] reinstall corrupted pkgs without doing a clean install (http://www.linuxquestions.org/questions/slackware-14/%5Bhelp%5D-reinstall-corrupted-pkgs-without-doing-a-clean-install-4175430000/)

red_fire 10-02-2012 12:26 AM

[Help] reinstall corrupted pkgs without doing a clean install
 
Hello,

I just upgraded my Slackware to Slackware 14.0 last night and since i have installed a lot if third party pkgs over the years, i decided to do

Code:

#slackpkg update
#slackpkg clean-install

However this has corrupted some of my packages and I couldn't start X at all. I fixed this with

Code:

#removepkg slackware/x/*.t?z
#installpkg slackware/x/*.t?z

I did the same with xfce because it wasn't listed in kdm and it was fixed right away.

So I would like to reinstall most of the other packages again without formatting my partition. Is there a way to do this? Or which package set do you think I could reinstall safely?

Regards,

Ricky

willysr 10-02-2012 12:30 AM

try
Code:

upgradepkg --reinstall slackware/x/*.t?z

red_fire 10-02-2012 12:49 AM

Thank you for your reply, I'm thinking of reinstalling most of the packages but I am not sure which are safe to reinstall..

red_fire 10-02-2012 04:06 AM

Ahh, i just realized that the UPGRADE.TXT said "upgrade everything else" so I guessed it would be fine to reinstall everything. I got a bit creative and used Pat's script

Code:

#!/bin/sh
    for dir in a ap d e f k kde l n t tcl x xap xfce y ; do
      ( cd $dir ; upgradepkg --install-new *.t?z )
    done

and changed it into

Code:

#!/bin/sh
    for dir in ap d e f k l n t tcl xap y ; do
      ( cd $dir ; upgradepkg --reinstall *.t?z )
    done

since i have reinstalled X, KDE and Xfce manually beforehand, i didn't include them. I didn't touch a/ either coz i thought it could be dangerous cmiiw. Anyways Thanks for that line of code, i didn't know that upgradepkg had that functionality :D all should be good now =)


All times are GMT -5. The time now is 01:47 PM.