Skip to content

tjemg/cache2repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreeBSD cache2repo

This small script will create an ISO image out of your current FreeBSD pkg cache

Run the script simply:

./cache2repo

A new file called mirror.iso will be created. You can copy/burn the image. On the target system, can do the following:

  1. Mount the ISO, e.g.
        mkdir /mirror
        mdconfig -a -t vnode -f mirror.iso -u 0
        mount -t cd9660 /dev/md0 /mirror
  1. [optional] Bootstrap pkg
        cd /
        tar xvzf mirror/pkg-bootstrap.tgz
  1. Install packages, e.g.
        pkg install mc vim
  1. Cleanup mirror
        umount /mirror
        mdconfig -d -u 0
        rmdir /mirror

That's all :-)

About

Convert a FreeBSD pkg cache to a pkg repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages