a945 [Solved] Install software do not use Internet. - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old September 24th, 2011, 18:18
valsorym's Avatar
valsorym valsorym is offline
Member
 
Join Date: Jun 2011
Location: Ukraine
Posts: 419
Thanks: 357
Thanked 20 Times in 17 Posts
Default Install software do not use Internet.

Hi all, I have a question. I have one PC, it should not connect to Internet. I want to install there FreeBSD 8.2. We call it <B> computer. My second PC (we call it <A> computer) has Internet connect. I installed FreeBSD on <A> and <B> computers. On <A> computer, I have installed the necessary software to me, used port collections. After I create folder:
Code:
# mkdir -p ~/packages
And create local repository.
Code:
# cd ~/packages/
# pkg_info -Ix <pkg_name>
See the full name of the package.
Code:
# pkg_create -R -b <pkg_full_name>
After I copy ~/packages to <B> computer and install software.

But, I have 50 software. And I should 50 use: pkg_info and pkg_create. pkg_create runs from 3 seconds to 15 minutes. All this time I have to sit at the <A> computer.


How to automate the process of creating a local repository? Perhaps there is another way?

Last edited by DutchDaemon; September 25th, 2011 at 03:26.
Reply With Quote
  #2  
Old September 24th, 2011, 18:53
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,727
Thanks: 432
Thanked 1,763 Times in 1,460 Posts
Default

Write a shell script to loop through all the installed packages and create a package for each.

untested messy sorta-pseudo-code
Code:
#!/bin/sh

repo="/home/somebody/packages"

cd $repo
for pkg in $( pkg_info | cut -d' ' -f1 ); do
  pkg_create -b $pkg  # note non-use of -R
done
Reply With Quote
The Following 2 Users Say Thank You to wblock@ For This Useful Post:
jb_fvwm2 (September 24th, 2011), valsorym (September 24th, 2011)
  #3  
Old September 24th, 2011, 22:18
valsorym's Avatar
valsorym valsorym is offline
Member
 
Join Date: Jun 2011
Location: Ukraine
Posts: 419
Thanks: 357
Thanked 20 Times in 17 Posts
Default

Thank you wblock@!
Should work!
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
Problem when I try to install software by pkg_add (Freebsd 8) pauloperes Installation and Maintenance of FreeBSD Ports or Packages 4 June 30th, 2010 20:09
no Internet during install mrcoolhead Installation and Maintenance of FreeBSD Ports or Packages 3 May 6th, 2010 02:40
[Solved] Best way to install Software without Internet steve_s Installation and Maintenance of FreeBSD Ports or Packages 6 February 9th, 2010 21:10
I dont know how to install software... :( zakka Installing & Upgrading 5 March 8th, 2009 00:34
Install RSI Prevention Software vivek Howtos & FAQs (Moderated) 2 November 21st, 2008 22:25


All times are GMT +1. The time now is 05:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0