{"id":263,"date":"2011-10-22T17:39:13","date_gmt":"2011-10-22T16:39:13","guid":{"rendered":"http:\/\/blog.briang.org\/?p=263"},"modified":"2014-01-25T13:58:57","modified_gmt":"2014-01-25T13:58:57","slug":"working-with-freebsds-ports","status":"publish","type":"post","link":"https:\/\/blog.briang.org\/?p=263","title":{"rendered":"Working with FreeBSD&#8217;s ports"},"content":{"rendered":"<ol>\n<li> Fetch and update your ports collection:\n<p><code>portsnap fetch<br \/>\nportsnap extract # first time only<br \/>\nportsnap update  # subsequently<\/code><\/p>\n<p>(this takes some time)<P><\/p>\n<li> Find the packages you want to install\/upgrade:\n<p>Find out-of-date packages:<\/p>\n<p><code>pkg_version -v<\/code><P><\/p>\n<p>Find a new package:<P><\/p>\n<p><code>whereis port-i-want<\/code><P><\/p>\n<li> Change to the directory for the port you want to install:\n<p><code>cd \/usr\/ports\/path-to\/port-i-want<\/code><P><\/p>\n<li> Install it:\n<p><code>make install clean<\/code><P><\/p>\n<li> Upgrading installed ports using <code>portmaster<\/code>:\n<p><code>portmaster<\/code> needs to be installed before use:<\/p>\n<p><code>cd \/usr\/ports\/ports-mgmt\/portmaster<br \/>\nmake install clean<\/code><P><\/p>\n<p>You can list all the installed ports and search for updates using the -L option:<P><\/p>\n<p><code>portmaster -L<\/code><P><\/p>\n<p>All the installed ports can be upgraded at once:<P><\/p>\n<p><code>portmaster -a<\/code><\/p>\n<li> Cleaning up:<P>\n<\/ol>\n<p>See <a href=\"http:\/\/www.freebsd.org\/doc\/handbook\/ports-using.html\">Using the Ports Collection<\/a> in the <a href=\"http:\/\/www.freebsd.org\/\">FreeBSD<\/a> <a href=\"http:\/\/www.freebsd.org\/doc\/handbook\/\">Handbook<\/a> for more details <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fetch and update your ports collection: portsnap fetch portsnap extract # first time only portsnap update # subsequently (this takes some time) Find the packages you want to install\/upgrade: Find out-of-date packages: pkg_version -v Find a new package: whereis port-i-want Change to the directory for the port you want to install: cd \/usr\/ports\/path-to\/port-i-want Install it: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[66,67],"class_list":["post-263","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-freebsd","tag-ports"],"_links":{"self":[{"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.briang.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=263"}],"version-history":[{"count":10,"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions"}],"predecessor-version":[{"id":632,"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions\/632"}],"wp:attachment":[{"href":"https:\/\/blog.briang.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.briang.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.briang.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}