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 07-11-2020, 04:54 AM   #1
ennepath
LQ Newbie
 
Registered: Jun 2020
Posts: 23

Rep: Reputation: Disabled
Keep multiple instances of slackware64-current updated identicaly


The thing is I have a home workstation that is fine for updates testing. I can always revert something that is broken. Mostly because I have time for this. I usually install updates once a week in the evening. So I have at very least a couple of hours to test if everything is OK. Then I need to update my workstation at work and here the problem appears. How to make update of work pc identical to home pc to be certain everything is OK on both my machines? I wonder if keeping slackpkg changelog identical between two workstations is enough for this? Of course there could be a situation when some package being upgraded in the time gap between home pc update and work pc update. But it's ok, I can manage this.

What's your advices on this matter?
 
Old 07-11-2020, 06:00 AM   #2
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Download the entire tree and make an installation disk. Do a full install on each machine.

The process can be made easier by writing a script to apply customizations.
Ed
 
Old 07-11-2020, 06:42 AM   #3
ennepath
LQ Newbie
 
Registered: Jun 2020
Posts: 23

Original Poster
Rep: Reputation: Disabled
Isn't it an overkill for this task?
 
Old 07-11-2020, 07:01 AM   #4
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
I do this every 2-4 months. The process is highly automated and does not require Internet access.
Ed
 
Old 07-11-2020, 07:48 AM   #5
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
You need your own local repositiory on one of machines - updates are only made through this local repository. You can establish your own local file server - ftp or http://ftp (ftp is much easier) point slackpkg to this sever. Every week you will update repository, and then all your machines - say you can put this into cron
 
Old 07-11-2020, 09:00 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Like you, I run a development system for testing that is updated using slackpkg. On this system I use a tweaked slackpkg.conf to maintain a local repository. I find it useful to be able to track by date and compare with the ChangeLog, although rworkman does not like this approach.
When I want to update my daily driver, I copy the directory containing desired updates in /var/cache on the development system into the local /var/cache directory.
If I am happy to apply all available updates, then in a bash shell I use a command like (changed for the correct date)
Code:
(cd /var/cache/packages20200706; shopt -s globstar; for f in **/*.txz; do upgradepkg --install-new $f; done)
To keep the local repository to a manageable size, I use this script.

Last edited by allend; 07-11-2020 at 09:01 AM.
 
Old 07-11-2020, 10:27 AM   #7
ennepath
LQ Newbie
 
Registered: Jun 2020
Posts: 23

Original Poster
Rep: Reputation: Disabled
@igadoter, @allend, thanks. I guess having a full local mirror is a nice thing anyway. Gonna try this way.
 
Old 07-11-2020, 09:38 PM   #8
gus3
Member
 
Registered: Jun 2014
Distribution: Slackware
Posts: 490

Rep: Reputation: Disabled
I have 4 x86 nodes, two 32-bit and two 64-bit. The only thing outside -current that they're running, is GCC 10.x from -testing.

My smallest 32-bit is an Asus EeePC 901 netbook, with an external HD, because 4G internal just isn't enough.

So here's my "universal" setup:

-- a central repository of 32-bit and 64-bit Slackware-current packages, on an NFS server (a Raspberry Pi 2)
-- all x86 nodes have it mounted on ~/slackdir
-- and under ~/slackdir is slackware-current and slackware64-current

But package install/upgrade requires root privileges, best acquired via "su -", so there's also a symlink in each /root:

-- /root/slackware-current -> ~/slackware-current on 32-bit, or
-- /root/slackware-current -> ~/slackware64-current on 64-bit

This is the setup that allows the following sequence on my desktop:

Code:
$ multixterm -xc "ssh %n" ::1 system2 system3 system4
This gets me four SSH sessions on my desktop and 3 remote systems. Then:

Code:
$ su -
# cd slackware-current
After this, it's a matter of updating packages. I use the sequence a/, l/, and then the rest in order. And I make sure to install the relevant a/kernel*t?z packages, not update them. (Once a new kernel is proven to Work For Me, I'll delete the old ones, eventually.)

I also have /etc/mkinitrd.conf set up for each system. That way, once all the packages are updated, I can do this:

Code:
# cd /boot
# mkinitrd -F
Then each machine has its appropriate init ramdisk. I can run "lilo" as needed, and all is good for the next go-round.
 
1 members found this post helpful.
  


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
Batch adding multiple users to an instances for multiple pages Fred27377 Linux - Newbie 6 06-10-2020 02:48 PM
sendmail-2: Wrong number of instances of process sendmail:, expected instances equal maxymaxymaxymaxymaxy Linux - Newbie 1 06-15-2011 10:51 AM
Slackware64 current multilib, do the 32 bit packages need to be updated as well? damgar Slackware 11 02-01-2010 11:08 AM
Updating from Slackware64-current to Slackware64 13. glore2002 Slackware 4 08-28-2009 06:50 PM
kickstart; how-to info needed for multiple instances of RH OS's and multiple unique v Joe_Wulf Linux - Server 4 06-21-2007 11:18 PM

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

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