Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| pkgprimer [2013/02/14 09:42] – Quick portbuilder under jail howto hselasky | 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 ===== | ===== Charter and Roadmap ===== | ||
| Line 10: | 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 16: | 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 33: | 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 109: | 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 123: | 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 141: | Line 159: | ||
| ==== Using portbuilder inside a jail ==== | ==== 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 | + | When building 9-stable ports in a 9-stable jail under -current you might want to set the UNAME_r |
| * setenv | * setenv | ||
| Line 148: | Line 166: | ||
| Else some ports won't build properly. | Else some ports won't build properly. | ||
| + | |||
| + | ---- | ||
| + | |||
| + | {{tag> | ||