LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can one take what is in /var/cache and use it again on a different install of slack and how? (https://www.linuxquestions.org/questions/slackware-14/can-one-take-what-is-in-var-cache-and-use-it-again-on-a-different-install-of-slack-and-how-4175601051/)

BW-userx 03-04-2017 07:27 AM

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?

SCerovec 03-04-2017 08:07 AM

Couldn't You try it on a virtual machine?
And report back :) ?

allend 03-04-2017 08:08 AM

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/

BW-userx 03-04-2017 08:37 AM

Quote:

Originally Posted by SCerovec (Post 5678985)
Couldn't You try it on a virtual machine?
And report back :) ?

I'd need a working system for that .. ;)

BW-userx 03-04-2017 08:39 AM

Quote:

Originally Posted by allend (Post 5678986)
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.

BW-userx 03-04-2017 09:46 AM

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?

bassmadrigal 03-04-2017 11:27 AM

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).

BW-userx 03-04-2017 12:02 PM

Quote:

Originally Posted by bassmadrigal (Post 5679057)
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.


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