Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
freebsd:cheatsheet [2013/03/05 18:17]
Toni Corvera created
freebsd:cheatsheet [2013/03/05 18:59]
Toni Corvera
Line 1: Line 1:
 ====== FreeBSD Cheat Sheet ====== ====== FreeBSD Cheat Sheet ======
  
-===== Binary package management basics =====+===== Binary package management basics ​with pkgng ===== 
 + 
 +See: http://​www.freebsd.org/​doc/​handbook/​pkgng-intro.html 
 + 
 +IMPORTANT: As of this writing (March 2013) the pkgng repositories are offline, see https://​wiki.freebsd.org/​pkgng#​Availability_of_pkgs_for_Download 
 + 
 +==== Boostrap ==== 
 + 
 +BIG WARNING: After converting to the new format, the ''​pkg_install''​ tools should NOT be used any more. See the link provided above for more details.  
 + 
 +FreeBSD 9.1: 
 +  # pkg 
 +  # pkg2ng 
 +  # echo '​WITH_PKGNG= yes'​ >> /​etc/​make.conf 
 + 
 +FreeBSD below 9.1: 
 +  # pkg_add -r pkg 
 +  # pkg2ng 
 +  # echo '​WITH_PKGNG= yes'​ >> /​etc/​make.conf 
 + 
 +==== Install package from the Internet ==== 
 + 
 +  # pkg install $somepackage 
 + 
 +===== Binary package management basics (traditional) ​=====
  
 ==== Install package from the Internet ==== ==== Install package from the Internet ====
Line 23: Line 47:
  
 The package version IS required to uninstall, it can be obtained with ''​pkg_info''​ The package version IS required to uninstall, it can be obtained with ''​pkg_info''​
- 
-===== Upgrade to a new release ===== 
- 
-  # freebsd-update -r $RELEASE_VERSION upgrade 
-  # freebsd-update install 
-  # reboot 
-  # freebsd-update install ​ 
- 
-Replace $RELEASE_VERSION with the actual version, e.g. 9.1 or 8.3-RELEASE. 
-''​freebsd-update install''​ must be run twice, once before and once after rebooting. 
  
 ===== Upgrade binary packages ===== ===== Upgrade binary packages =====
Line 52: Line 66:
   # portsnap update   # portsnap update
  
 +===== Upgrade to a new release =====
 +
 +  # freebsd-update -r $RELEASE_VERSION upgrade
 +  # freebsd-update install
 +  # reboot
 +  # freebsd-update install ​
 +
 +Replace $RELEASE_VERSION with the actual version, e.g. 9.1 or 8.3-RELEASE.
 +''​freebsd-update install''​ must be run twice, once before and once after rebooting.
  
 ===== References ===== ===== References =====
freebsd/cheatsheet.txt · Last modified: 2013/03/05 18:59 by Toni Corvera
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki