a945
![]() |
|
|
|
|
|||||||
| Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
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 Code:
# cd ~/packages/ # pkg_info -Ix <pkg_name> Code:
# pkg_create -R -b <pkg_full_name> 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. |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
Thank you wblock@!
Should work! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |