Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| pkgprimer [2012/08/28 18:29] – bulk now keeps packages by default in poudriere 2.0 BryanDrewery | pkgprimer [2017/08/23 13:17] (current) – Add to CategoryHowTo and fix a typo MateuszPiotrowski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Pkg Primer ====== | ====== Pkg Primer ====== | ||
| + | |||
| + | ===== Switching to pkgng ===== | ||
| + | |||
| + | Please see [[http:// | ||
| + | in the %%FreeBSD%% Handbook for information about changing a system to use pkgng. | ||
| + | |||
| + | ===== Charter and Roadmap ===== | ||
| + | |||
| + | see: [[pkgng/ | ||
| ===== Rosetta Stone ===== | ===== Rosetta Stone ===== | ||
| Line 6: | Line 15: | ||
| | get list of installed packages | // | | get list of installed packages | // | ||
| | get basic information about a package | //pkg_info pkgname-pkgversion// | | get basic information about a package | //pkg_info pkgname-pkgversion// | ||
| - | | get detailled | + | | get detailed |
| | list all files contained in an installed package | //pkg_info -L pkgname-pkgversion// | | list all files contained in an installed package | //pkg_info -L pkgname-pkgversion// | ||
| | find which package provide an installed file | //pkg_info -W / | | find which package provide an installed file | //pkg_info -W / | ||
| Line 12: | Line 21: | ||
| | install a remote package | //pkg_add -r mypackage// | //pkg install mypackage// OR //pkg install category/ | | install a remote package | //pkg_add -r mypackage// | //pkg install mypackage// OR //pkg install category/ | ||
| | search for a remote package | N/A | //pkg search mypackage// OR //pkg search category/ | | search for a remote package | N/A | //pkg search mypackage// OR //pkg search category/ | ||
| - | | search for detailled | + | | search for detailed |
| | show reverse dependencies of an installed package | //pkg_info -R pkgname-pkgversion// | | show reverse dependencies of an installed package | //pkg_info -R pkgname-pkgversion// | ||
| | show dependencies of an installed package | //pkg_info -r pkgname-pkgversion// | | show dependencies of an installed package | //pkg_info -r pkgname-pkgversion// | ||
| Line 29: | Line 38: | ||
| | show statistic about installed packages | N/A | //pkg stat// | | | show statistic about installed packages | N/A | //pkg stat// | | ||
| | checking for missing dependency (and try to fix them) | N/A | //pkg check -d// | | | checking for missing dependency (and try to fix them) | N/A | //pkg check -d// | | ||
| + | | port origin | pkg_info -o | //pkg info -o// | | ||
| ===== Details ===== | ===== Details ===== | ||
| + | |||
| + | ==== Marking all packages but vim-lite and pkg as automatic ==== | ||
| + | |||
| + | < | ||
| + | pkg set -yA 1 `pkg query -e "%n != pkg && %n != vim-lite" | ||
| + | </ | ||
| + | |||
| + | Now you can cleanup all the left crufts | ||
| + | |||
| + | < | ||
| + | pkg autoremove | ||
| + | </ | ||
| ===== Building custom repositories ===== | ===== Building custom repositories ===== | ||
| Line 105: | Line 127: | ||
| * ${POUDRIERE_DATA}/ | * ${POUDRIERE_DATA}/ | ||
| - | Configure | + | Configure |
| On your user boxes: (if you use the automatic bootstrap it will take care of creating this file) | On your user boxes: (if you use the automatic bootstrap it will take care of creating this file) | ||
| Line 119: | Line 141: | ||
| From 9.1 you can directly bootstrap from the base: | From 9.1 you can directly bootstrap from the base: | ||
| - | Before 9.1 you will need to boostrap | + | Before 9.1 you will need to bootstrap |
| < | < | ||
| Line 130: | Line 152: | ||
| < | < | ||
| - | poudriere ports -u # this update | + | poudriere ports -u # this updates |
| poudriere bulk -f ~/mylist1 -j 90amd64 | poudriere bulk -f ~/mylist1 -j 90amd64 | ||
| poudriere bulk -f ~/mylist2 -j 10i386 | poudriere bulk -f ~/mylist2 -j 10i386 | ||
| </ | </ | ||
| + | |||
| + | ==== Using portbuilder inside a jail ==== | ||
| + | |||
| + | When building 9-stable ports in a 9-stable jail under -current you might want to set the UNAME_r environment variable to fake the %%FreeBSD%% version in / | ||
| + | |||
| + | * setenv | ||
| + | * setenv | ||
| + | * setenv | ||
| + | |||
| + | Else some ports won't build properly. | ||
| + | |||
| + | ---- | ||
| + | |||
| + | {{tag> | ||