LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-10-2016, 04:42 PM   #1
bogart1999
LQ Newbie
 
Registered: Jun 2016
Posts: 2

Rep: Reputation: Disabled
reinstall help


is there a way to use slackpkg or some script to reinstall all the distribution packages from the command prompt to clean up a working but now partially corrupt installation? This is for the stable version. 14.1

simply doing a fresh install is not the answer I seek.

best,

bogart
 
Old 06-10-2016, 04:53 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
slackpkg - version 2.82.1

Usage:
slackpkg [OPTIONS] {install|remove|search|file-search|
upgrade|reinstall|blacklist} {PATTERN|FILE}
slackpkg [OPTIONS] {generate-template|install-template|remove-template}
TEMPLATENAME
slackpkg [OPTIONS] info PACKAGE
slackpkg [OPTIONS] update [gpg]
slackpkg [OPTIONS] {clean-system|upgrade-all|install-new}
slackpkg [OPTIONS] {new-config|check-updates|help}
so I might do a "slackpkg clean-system" and then a "slackpkg reinstall *.tgz"

After I'd backed everything up.
 
Old 06-10-2016, 06:15 PM   #3
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,264
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Quote:
Originally Posted by dijetlo View Post
so I might do a "slackpkg clean-system" and then a "slackpkg reinstall *.tgz"

After I'd backed everything up.
You might what that to be "slackpkg reinstall *.txz" or "slackpkg reinstall *.t?z" although it might be safer to move /home to another partition, backup /etc and then reinstall clean from USB, DVD, or PXE boot. depends on how borked one's system gets.
 
Old 06-10-2016, 10:21 PM   #4
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,781

Rep: Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431
Here's a radical suggestion. Why not use Slackware's default package management and stop lusting after alleged convenience in favor of rock solid stability? Trust me, you will never have to deal with a corrupt installation. I know it's not for everyone but you did choose Slackware for a reason, right? Why turn it into an "also ran"? With SlackBuilds new apps are easy and the very worst that can happen is that one new app won't run. The System is NEVER at risk. For many, that alone would be worth extra effort but the simple truth is, it is less effort overall.
 
1 members found this post helpful.
Old 06-11-2016, 07:39 AM   #5
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
reinstall help

In case of messed up install, I just follow the UPGRADE.TXT order in single user mode with upgradepkg --reinstall --install-new *.t?z
 
1 members found this post helpful.
Old 06-11-2016, 02:17 PM   #6
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,264
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
enorbet, slackpkg is part of the official Slackware package set. Yes, it can clean up a partially corrupt installaion, within limits. It's just a script to the exact same standard pkgtools. Sure, it can goof up sometimes, but it is still handy for the "blacklist", "search", "install-templeate" and "clean-sytem", etc functionality. I use it to track -current and, with slackpkg+, my own repo across multiple systems and VMs via NFS.

To recover a system that is basically ok , If I do not want to PXE boot and reinstall everything, this sequence works reasonably well, in either single or multiuser mode, and after updating settings in /etc/slackpkg/mirrors (reinstall pkgtools and slackpkg...to make sure these scripts are ok):
Code:
$ slackpkg update 
$ slackpkg clean-system #remove 3rd party packages that may overlap 
$ slackpkg reinstall *.t?z  #go get coffee
$ slackpkg install-new
$ slackpkg upgrade-all
$ slackpkg clean-system
This usually works ok, and if not, I use Tonus' suggestion above for UPGRADE.txt using the original DVD set, then upgradepkg patches/*.t?z. Alternatively, after you backup /home (mine is on a separate partition) and whatever customization are in /etc (you ARE keeping a log, aren't you?). If you are running a remote server, you should then also be a bit more conservative in server management so that you don't corrupt the server in the first place....
-Just my 2 cents.
 
Old 06-11-2016, 02:18 PM   #7
bogart1999
LQ Newbie
 
Registered: Jun 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
thank you all that replied. I will be trying your suggestions.

best to all,

bogart
 
  


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
Will "yum reinstall httpd" and "yum reinstall php" mess with my settings? trvo Linux - Server 2 03-30-2012 05:02 AM
Reinstall Slack's LILO after WIndows XP reinstall __spc__ Linux - Newbie 3 02-15-2009 09:04 AM
reinstall Raakh Linux - Newbie 1 07-17-2007 08:52 AM
To reinstall or not to reinstall...that's the question.. minike Slackware 3 09-17-2005 06:24 PM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM

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

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

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