-   Slackware (
-   -   [Help] reinstall corrupted pkgs without doing a clean install (

red_fire 10-02-2012 01:26 AM

[Help] reinstall corrupted pkgs without doing a clean install

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


#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


#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?



willysr 10-02-2012 01:30 AM


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

red_fire 10-02-2012 01: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 05: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


    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 )

and changed it into


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

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 10:25 AM.