Last active
October 21, 2015 17:50
-
-
Save coder4web/1d5c172088a4525386bb to your computer and use it in GitHub Desktop.
FreeBSD ports and packages management
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FreeBSD ports (portmaster) and packages (pkgng) management | |
# ports | |
portsnap fetch extract | |
# portmaster | |
# You must upgrade the ports-mgmt/pkg port first. | |
make -C /usr/ports/ports-mgmt/pkg build deinstall install clean | |
pkg -v | |
# If you are upgrading from the old package format, first run: | |
pkg2ng | |
make install -C /usr/ports/ports-mgmt/portmaster | |
echo 'WITH_PKGNG=yes' >> /etc/make.conf | |
# install essential ports :) | |
# bash | |
portmaster /usr/ports/shells/bash | |
# nginx mainline | |
portmaster /usr/ports/www/nginx-devel | |
# list installed ports | |
portmaster -l | |
# Root ports (No dependencies, not depended on) | |
# Trunk ports (No dependencies, are depended on) | |
# Branch ports (Have dependencies, are depended on) | |
# Leaf ports (Have dependencies, not depended on) | |
# list installed ports and new available versions | |
portmaster -L | |
# ports update (interactive operation and can take time) | |
portsnap fetch update && portmaster -a | |
# port update | |
portmaster portname | |
# port remove | |
# delete the leaf ports that you know you don’t need on their own | |
portmaster -e portname | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment