LinuxQuestions.org
Review your favorite Linux distribution.
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 03-04-2017, 07:27 AM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Can one take what is in /var/cache and use it again on a different install of slack and how?


Ok heres something I've never tried before. To save me download time with a slow connection on post install updating a fresh install of Slackwere. Just take what is in the /var/cache of another slackwere copy it over (using root user of course) then when one (I) run slackpkg update / install-new / upgrade-all

should not slack see that thier is already some stuff within the /var/cache then just skip over it, or does it check the ch5sum first then if match skip else redownload?

anyways, with what is already within the cache it will skip then go to downloading what is left to be downladed and install up completion of getting what it needs?


two: what other files would need to be saved so it can be copied/moved on to the other system to keep the pkgs in cache striaght besides the asc file?

on a side note:

is there a way to make an iso of the update and just install that for a working operating system instead? Thus bypassing the whole install - update proccessssss?

Last edited by BW-userx; 03-04-2017 at 07:36 AM.
 
Old 03-04-2017, 08:07 AM   #2
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,470
Blog Entries: 2

Rep: Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979
Couldn't You try it on a virtual machine?
And report back ?
 
Old 03-04-2017, 08:08 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,357

Rep: Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739
By default, slackpkg maintains records in /var/lib/slackpkg/ of the last update run using slackpkg. When an update is conducted using slackpkg, the /var/cache/packages directory and substructure is rebuilt.
If you use the 'DELALL=off' option in /etc/slackpkg/slackpkg.conf, then downloaded files are kept. I use this option and then move /var/cache/packages to another directory after using slackpkg to perform an update to keep an archive of downloaded files.
What you want to do would probably be best handled by maintaining a local mirror of Slackware. http://alien.slackbook.org/blog/local-slackware-mirror/
 
Old 03-04-2017, 08:37 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by SCerovec View Post
Couldn't You try it on a virtual machine?
And report back ?
I'd need a working system for that ..
 
Old 03-04-2017, 08:39 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by allend View Post
By default, slackpkg maintains records in /var/lib/slackpkg/ of the last update run using slackpkg. When an update is conducted using slackpkg, the /var/cache/packages directory and substructure is rebuilt.
If you use the 'DELALL=off' option in /etc/slackpkg/slackpkg.conf, then downloaded files are kept. I use this option and then move /var/cache/packages to another directory after using slackpkg to perform an update to keep an archive of downloaded files.
What you want to do would probably be best handled by maintaining a local mirror of Slackware. http://alien.slackbook.org/blog/local-slackware-mirror/
well as it stands - I didn't save the /var/lib/slackpkg just the other one, and cache .. so I slipped into cross fingers and copy what i have over run the commands and hope for the best.
 
Old 03-04-2017, 09:46 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
This is what I ended up with:
Code:
==============================================================================
WARNING!        WARNING!        WARNING!        WARNING!        WARNING!
==============================================================================
One or more errors occurred while slackpkg was running:                       

seamonkey-2.46-x86_64-3.txz:	md5sum
glibc-solibs-2.24-x86_64-2.txz:	md5sum
pkgtools-14.2-noarch-13.txz:	md5sum
readline-7.0-x86_64-1.txz:	md5sum
seamonkey-2.46-x86_64-3.txz:	md5sum
sed-4.4-x86_64-1.txz:	md5sum
is that anything to loose sleep over?
 
Old 03-04-2017, 11:27 AM   #7
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
If you want to use slackpkg, allend's suggestion of using a local mirror is probably the best idea.

Otherwise, you could just grab the packages from that location and manually use upgradepkg on them (using a wildcard so you don't have to type a bunch of commands).
 
Old 03-04-2017, 12:02 PM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bassmadrigal View Post
If you want to use slackpkg, allend's suggestion of using a local mirror is probably the best idea.

Otherwise, you could just grab the packages from that location and manually use upgradepkg on them (using a wildcard so you don't have to type a bunch of commands).
Thanks I was just recovering from a post update - installed some 3rd party slackbuilds while I was waiting for slack to download everything to install it off the mirror. Ran out of time had to shut down before finishing the post update ctrl+C rebooted and lost me keyboard.

I do not know if that is what caused it or not, only that is what I was doing that might have screwed it up.

Instead of going though all of whatever to fix the keyboard even booting off the huge.s on the usb install stick did not give me back the keyboard. So I decided to install again and wondered if using the pkgs already downloaded into the cache might work to save time having to download everything again, and just pick up where it left off is all.

so yeah it seems to be working so far.

thanks.

Last edited by BW-userx; 03-04-2017 at 12:04 PM.
 
  


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
/var/cache/yum and /var/lib/rpm getting BIG. How to safely pare down? SharpyWarpy Linux - General 3 02-29-2012 01:17 AM
Copy /var/cache/apt to speed up package install ? piratas Linux - Software 1 09-07-2009 02:27 AM
openSUSE 10: Samba failed to create the cache directory in /var/cache mianmajidali Linux - Server 0 05-09-2008 02:00 AM
cache folder like /var/cache/apt/packages on Debian Shaddy SUSE / openSUSE 0 08-13-2006 10:02 AM
Error: Caching enabled and local cache: //var/cache/yum/base/primary.xml.gz does... dr_zayus69 Linux - Software 2 07-06-2005 04:32 AM

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

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