DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th July 2016
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 109
Default saving downloaded packages?

Quote:
Originally Posted by J65nko View Post
To handle this kind of situation I first do a test install in a Virtual Machine, or on another non-critical machine. I set the PKG_CACHE variable, so the packages are also saved.

Only if that install is successful, then I dare to install that new snapshot on my desktop.

Even using this method I have to use an installation method that does not use a "live" public ftp mirror, because there is not any guarantee that the contents of a ftp mirror has not changed or will change half-way during the second install
I know I'm reviving an old thread but this is an idea that makes sense to me and which I've used at times. But I don't understand what you mean by not using a "live" public ftp mirror. So what do you use - perhaps have the same bsd.rd on both machines? Could you enlarge on this please?
Reply With Quote
  #2   (View Single Post)  
Old 12th July 2016
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,303
Default

Quote:
Originally Posted by acampbell View Post
...I don't understand what you mean by not using a "live" public ftp mirror.
What J65nko describes is staging a new installation on an intermediate machine first. If, after installation, he is satisfied with all parts of installation, he then installs the kernels, filesets, & saved packages (saved through use of the PKG_CACHE variable...).

The installation on the second computer is all done locally.
  • Installation of the base installation filesets is done from a mounted disk. I also live on -current, & the filesets I keep are either on a USB drive or burned to CD.
  • Packages can be installed locally too. Packages in their original *.tgz form can also be saved to a USB drive or burned CD or DVD too. When I install packages I have saved, I don't bother with setting PKG_PATH on the second machine. It is not needed. I install packages from a mounted drive.
Why save the packages' *.tgz files downloaded from a mirror? Because bulk builds are done often enough that anything I install last week may be overwritten by newer packages which were built with newer incompatible libraries found in newer snapshots. The landscape of -current is always changing.
Quote:
So what do you use - perhaps have the same bsd.rd on both machines? Could you enlarge on this please?
Your assumption here is that the configuration of what mirror is used is saved in the kernel. This is incorrect. PKG_PATH is simply an environment variable. Many have it set to a fixed value in their ~/.profile such that it is constantly set to the same value during every session. The purpose of PKG_PATH is to simplify what parameters need to be manually supplied to pkg_add such that it will retrieve the desired files from a remote server. When installing locally, this convenience is not required.

Last edited by ocicat; 12th July 2016 at 12:10 PM. Reason: Fixed errant tags
Reply With Quote
  #3   (View Single Post)  
Old 12th July 2016
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 109
Default

If I'm understanding this correctly, before starting the upgrade on the first (test) machine I should first download the relevant base system files so as to be able to copy them later to the second machine. Is that right?

As for saving the package *.tgz files, I pointed PKG_CACHE to /home/ac/packages but nothing was saved, either for upgraded packages or newly installed ones. I don't understand why this didn't work.
Reply With Quote
  #4   (View Single Post)  
Old 12th July 2016
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,303
Default

This thread is being separated from its parent:

http://daemonforums.org/showthread.php?p=59217

...as the focus there was on mismatched libraries. This thread targets fetching packages from mirrors for later use.

We ask members to view the initial message in a thread as what defines conversation. We welcome side discussions, but please do so in new threads. Many of our members do not have English as their primary language, & technical understanding goes throughout the gamut. In order to help understanding, we ask members to keep threads on a single topic.
Reply With Quote
  #5   (View Single Post)  
Old 12th July 2016
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,303
Default

Quote:
Originally Posted by acampbell View Post
...before starting the upgrade on the first (test) machine I should first download the relevant base system files so as to be able to copy them later to the second machine. Is that right?
Yes.
Quote:
As for saving the package *.tgz files, I pointed PKG_CACHE to /home/ac/packages but nothing was saved, either for upgraded packages or newly installed ones. I don't understand why this didn't work.
Did you specify pkg_add(1)'s -n switch? What command are you actually using which will download packages?
Reply With Quote
  #6   (View Single Post)  
Old 13th July 2016
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 109
Default

Quote:
Originally Posted by ocicat View Post
Yes.

Did you specify pkg_add(1)'s -n switch? What command are you actually using which will download packages?
Thanks for your reply. I found the problem: I was using doas as a different user (admin) as suggested in http://www.openbsd.org/faq/faq10.html#doas. This user does not have PKG_CACHE set. Running from my ordinary account works correctly.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sterilization of downloaded/mounted media/drives/filesystems jackthechemist OpenBSD Security 5 27th December 2010 07:05 PM
CPU power saving done correctly MihaiM OpenBSD General 6 24th November 2010 03:40 AM
Saving automatically downloaded binary packages IdOp NetBSD Package System (pkgsrc) 6 23rd November 2009 06:00 PM
Firefox profile not saving tonywob FreeBSD General 4 20th May 2008 12:20 PM


All times are GMT. The time now is 08:01 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick