LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-15-2013, 08:47 PM   #1
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
14.1 interrupted upgrade, how to resume?


I started an upgrade from 14.0 to 14.1 on my laptop, following the instructions in UPGRADE.TXT as I usually do. I upgraded glibc-solibs, the package utility and related tools, then started the upgrade script to install all the packages:

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
I realized I'd forgotten something, so I hit ctrl-c to interrupt it. It was in the process of installing one of the aaa packages, I think it was aaa-base-14.1-i486-1, and I don't think it actually finished installing it.

When I was ready to resume, I ran the script again, and it said "Skipping package aaa_base-14.1-i486-1 (already installed)", and also the next three packages.

How can I tell if it really installed those first four packages. Even better, is there a way I can restart the upgrade from the beginning and reinstall those first few packages to make sure they are installed properly?
 
Old 12-15-2013, 08:53 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
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 --reinstall *.t?z )
done
Been there, done that, after running out of space in a partition.
 
2 members found this post helpful.
Old 12-15-2013, 09:00 PM   #3
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks Richard! I'm guessing that --reinstall will make the upgrade process run a bit longer since there are probably a lot of packages in 14.1 that didn't change from 14.0. But I'll let it run overnight, so no problem.

I guess I could also just manually --reinstall those first few packages until I get to the one it was working on when I interrupted it the second time, then just do a normal upgrade from there. Should work?
 
Old 12-15-2013, 09:09 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
Quote:
Originally Posted by Z038 View Post
I guess I could also just manually --reinstall those first few packages until I get to the one it was working on when I interrupted it the second time, then just do a normal upgrade from there. Should work?
Yep, should work.
 
Old 12-16-2013, 05:23 PM   #5
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
It worked, Richard. Thanks again. I just used --reinstall on everything in the "a" directory, then continued with the normal upgrade for the rest of it.

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


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mirror_slackware_current.sh: does it resume if interrupted? damgar Slackware 4 07-14-2012 12:07 AM
[SOLVED] interrupted upgrade brtilley Linux - Newbie 5 03-26-2012 06:03 PM
How do I resume interrupted download ? pppaaarrrkkk Linux - Newbie 6 09-30-2007 11:28 AM
How can I resume a download with Firefox if Connection is interrupted? Balarabay1 Linux - Software 1 10-04-2006 04:56 PM
Resume interrupted frugal_lite install poqui DamnSmallLinux 0 03-19-2006 09:17 PM

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

All times are GMT -5. The time now is 10:08 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