LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 10-02-2012, 12:26 AM   #1
red_fire
Member
 
Registered: Jan 2007
Location: Indonesia
Distribution: Slackware Linux
Posts: 67

Rep: Reputation: 11
[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: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
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: 67

Original Poster
Rep: Reputation: 11
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: 67

Original Poster
Rep: Reputation: 11
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



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



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 / openSUSE 4 03-10-2005 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:31 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration