DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 22nd November 2009
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default Saving automatically downloaded binary packages

When installing binary packages with the pkg_add(1) command, it will download the package and any packages it depends on from a remote server (if the PKG_PATH variable is set up for this), and then install the packages and delete them.

Is there any way to save (i.e., keep) all the binary packages that have been downloaded from a remote site?

Thanks for any insights.
Reply With Quote
  #2   (View Single Post)  
Old 23rd November 2009
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 192
Default

I thought there was a variable to be set for that but just couldn't find it. Maybe I'm just trippin'. Anyway, one way to save the downloaded binary packages is to use pkgtools/pkgin. It's described as:
Quote:
pkgin is aimed at being an apt / yum like tool for managing pkgsrc binary packages. It relies on pkg_summary(5) for installation, removal and upgrade of packages and associated dependencies, using a remote repository.
It make's a cache of installed binary package in /var/db/pkgin/cache/ directory.

pkgin has recently been added to DragonFlyBSD base: http://leaf.dragonflybsd.org/mailarc.../msg00088.html
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
Reply With Quote
  #3   (View Single Post)  
Old 23rd November 2009
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 192
Default

Ah, yes - I run into this also, sadly its a draft only:

http://wiki.netbsd.se/pkgsrc.conf
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
Reply With Quote
  #4   (View Single Post)  
Old 23rd November 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

BTW in OpenBSD this can easily achieved by setting and exporting the PKG_CACHE variable. In 2006 somebody in http://mail-index.netbsd.org/pkgsrc-...msg016871.html asked this feature to be implemented in NetBSD.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #5   (View Single Post)  
Old 23rd November 2009
Beastie Beastie is offline
Daemonology student
 
Join Date: Jan 2009
Location: /dev/earth0
Posts: 335
Default

Same with FreeBSD:
Quote:
Originally Posted by man pkg_add
-K, --keep Keep any downloaded package in PKGDIR if it is defined or in current directory by default.
__________________
May the source be with you!
Reply With Quote
  #6   (View Single Post)  
Old 23rd November 2009
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

@ s0xxx: Thanks, I've downloaded pkgin and will check it out as the opportunity permits. It looks like they're working on it with pkgsrc.conf

@ J65nko: +1 for OpenBSD on this one.
Reply With Quote
  #7   (View Single Post)  
Old 23rd November 2009
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 192
Default

@J64nko

Yes, I actually saw that PR but forgot to post the link to it. There is some talk about the saving of downloaded packages in this thread also.

@IdOp

I don't think anyone is working on it, the page was last updated on November 2007. I also couldn't find any recent reference to it, I just posted it 'cause I run into it on wiki.
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
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
Modular xorg binary packages for i386? GullibleJones NetBSD Package System (pkgsrc) 14 10th August 2019 10:53 PM
Login automatically map7 FreeBSD General 1 12th October 2008 11:09 PM
Java JDK & JRE binary packages available for FBSD 6.3 & 7.0 J65nko FreeBSD Ports and Packages 3 20th August 2008 08:09 PM
Firefox profile not saving tonywob FreeBSD General 4 20th May 2008 12:20 PM


All times are GMT. The time now is 06:24 AM.


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