LinuxQuestions.org
Help answer threads with 0 replies.
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 05-13-2017, 12:53 PM   #1
bilbod
Member
 
Registered: Mar 2003
Posts: 134

Rep: Reputation: 33
Slackware Upgrade Question


Is it possible to upgrade Slackware on one computer and use the downloaded files to upgrade Slackware on a 2nd computer so you don't have to download all the files a 2nd time?
 
Old 05-13-2017, 01:55 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Of course. The simplest way would be to store all the new packages in some directory accessible from the 2nd computer and only that, cd there and type upgradepkg *t?z.
 
Old 05-13-2017, 06:28 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Another option would be to set up your own mirror. Eric (Alien Bob) has a script that will do just that. It will completely mirror the selected version of Slackware (by default, it will do -current, but you can change it to any version). Then you can set slackpkg to use your server as the mirror.

I have mine mirrored to /share/slackware-mirrors/ (I have both 14.2 and -current in there -- both 64bit), then I symlinked that to /var/www/htdocs/mirror/ and started my rc.httpd service. Then I can just add my own entry to the slackpkg mirrors for my local IP:

Code:
10.0.0.152/mirrors/slackware64-14.2/
I do this on all my local machines and then set Eric's script to run at 6AM every morning to sync my local copies with the slackware.mirrors.tds.net mirror.

This would be a more permanent setup that could minimize your downloads overall and the effort in future updates. But if you're just wanting to do it once or twice, it might be easier to use Didier's method. The method I detailed is one of those that will take some effort to get set up, but once it is, it will save you a lot of time in the future (and bandwidth, if your ISP cares about that -- mine doesn't, but the mirrors will always be slower than my gigabit network at home, so it saves me time when I use slackpkg to update my systems).
 
Old 05-13-2017, 08:19 PM   #4
Roberto Alvarez
LQ Newbie
 
Registered: Aug 2010
Location: Staten Island, New York
Distribution: Slackware
Posts: 13

Rep: Reputation: 2
My first answer would be "yes". On a second thought "no"!

May I explain myself: If your first install system is a 32-bit architecture system, then you can install it in a 64-bit architecture based computer.

If the original computer where you install linux has a processor capable of 64-bit instructions, and you install a variant of linux tailored for 64-bit, then your second system, if it is a 32-bit processor system, that is, will not be able to handle the instructions given to it, because it is a different architecture.

My second point will be: What medium is the second computer/device able to accept for an installation? USB, CD, DVD, etc...


So, in conclusion:

Get information on the system you have the hardware system install, and on the computer you want to install it.
Then, are they the same architecture? Will the installation software that I got will suffice? Or will I need to acquire a variant to conform to the needs of this other system/
 
Old 05-13-2017, 08:35 PM   #5
Roberto Alvarez
LQ Newbie
 
Registered: Aug 2010
Location: Staten Island, New York
Distribution: Slackware
Posts: 13

Rep: Reputation: 2
Post data:

As a matter of fact, I do not "Upgrade" my system! Whenever there is a Slackware upgrade, I backup my personal files and then I make a clean install. The reason being that I do not want outdated scripts to linger around with the new installation.

Besides you can only upgrade Slackware from the previous release.

I hope you focus on the best of this experience that is Slackware. It is trying! Nevertheless awards await you! Enjoy!
 
2 members found this post helpful.
Old 05-13-2017, 09:15 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Each new version of Slackware comes with a text file that includes detailed instructions of how to upgrade from the previous version. I tried to do a version upgrade once and I botched it.

That's why I run --Current.
 
Old 05-14-2017, 12:37 AM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Post

frankbell's answer makes me realize that maybe I misunderstood the question. My answer in post #2 assumes that you just want to upgrade some packages in Slackware stable. But if you want to upgrade to a new Slackware version of course is not sufficient as then you will have to handle removed packages (you could just add the option --install-new to include the new packages).
 
Old 05-14-2017, 11:15 AM   #8
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by bilbod View Post
Is it possible to upgrade Slackware on one computer and use the downloaded files to upgrade Slackware on a 2nd computer so you don't have to download all the files a 2nd time?
If you use slackpkg make sure DELALL=off in /etc/slackpkg/slackpkg.conf

This makes sure packages are not deleted after an update. You can then export them to the other machine using NFS.
 
Old 05-14-2017, 07:28 PM   #9
bilbod
Member
 
Registered: Mar 2003
Posts: 134

Original Poster
Rep: Reputation: 33
I guess I wasn't specific enough in my original question. I am talking about upgrading Slackware64-14.2 with the patches that are released from time to time (that contain security fixes, bug fixes, etc).

Didier's suggestion would work; however, I used slackpkg to upgrade and as Gerard pointed out its default behavior is to delete the packages after they are installed. So I no longer have the packages.

I liked bassmadrigal's suggestion to maintain a local Slackware mirror and since there is already a script to create and maintain a local mirror, I thought I would give it a try.

It took a while but I managed to get it to work. I excluded pasture, extra, and the source files. It takes up about 3 GB of space. Now I can easily use that to upgrade any Slackware computer on my LAN and it is much faster than doing it over the Internet.

I set up a cron job to run the script once a day to check for upgrades.
 
  


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
Slackware -current upgrade question m23 Slackware 1 03-19-2013 04:41 AM
apt-get question: dist-upgrade vs upgrade Arodef Fedora 9 06-15-2012 01:33 PM
slackware question... how to upgrade from V10 to 12.x without losing config unclejed613 Slackware 16 03-18-2009 11:47 PM
Slackware Upgrade Question TBomb Slackware 6 07-28-2004 05:49 AM

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

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