Differences

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

Link to this comparison view

Both sides previous revision Previous revision
freebsd:cheatsheet [2013/03/05 17:36]
Toni Corvera
freebsd:cheatsheet [2013/03/05 17:59]
Toni Corvera
Line 4: Line 4:
  
 See: http://​www.freebsd.org/​doc/​handbook/​pkgng-intro.html 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 ==== ==== Boostrap ====
Line 12: Line 14:
   # pkg   # pkg
   # pkg2ng   # pkg2ng
 +  # echo '​WITH_PKGNG= yes'​ >> /​etc/​make.conf
  
 FreeBSD below 9.1: FreeBSD below 9.1:
   # pkg_add -r pkg   # pkg_add -r pkg
   # pkg2ng   # pkg2ng
 +  # echo '​WITH_PKGNG= yes'​ >> /​etc/​make.conf
 +
 +==== Install package from the Internet ====
 +
 +  # pkg install $somepackage
  
 ===== Binary package management basics (traditional) ===== ===== Binary package management basics (traditional) =====
Line 39: 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 68: 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 17: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