LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-02-2012, 12:26 AM   #1
red_fire
Member
 
Registered: Jan 2007
Location: Indonesia
Distribution: Slackware Linux
Posts: 51

Rep: Reputation: 8
[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
 
Old 10-02-2012, 12:30 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,343

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
try
Code:
upgradepkg --reinstall slackware/x/*.t?z
 
Old 10-02-2012, 12:49 AM   #3
red_fire
Member
 
Registered: Jan 2007
Location: Indonesia
Distribution: Slackware Linux
Posts: 51

Original Poster
Rep: Reputation: 8
Thank you for your reply, I'm thinking of reinstalling most of the packages but I am not sure which are safe to reinstall..
 
Old 10-02-2012, 04:06 AM   #4
red_fire
Member
 
Registered: Jan 2007
Location: Indonesia
Distribution: Slackware Linux
Posts: 51

Original Poster
Rep: Reputation: 8
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 all should be good now =)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I do a clean debian reinstall on a VPS walterbyrd Debian 2 01-10-2010 05:37 PM
K3b is corrupted, how do I delete and reinstall. Lola Kews Linux - Software 3 05-21-2009 12:43 PM
Ncurses corrupted on Gentoo, need reinstall Valfather Linux - Software 3 04-10-2007 04:58 PM
How to wipe HD clean to reinstall Winblows stormyk88 Linux - Software 6 12-12-2006 11:18 AM
SuSE reinstall (clean install) foxy123 Suse/Novell 4 03-10-2005 07:48 AM


All times are GMT -5. The time now is 07:04 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration