{"id":49,"date":"2007-10-21T13:14:03","date_gmt":"2007-10-21T11:14:03","guid":{"rendered":"http:\/\/lexa.tenet.ua\/blog\/2007\/10\/21\/freebsd-update-software-and-apply-security-patch\/"},"modified":"2008-05-09T12:46:58","modified_gmt":"2008-05-09T10:46:58","slug":"freebsd-update-software-and-apply-security-patch","status":"publish","type":"post","link":"https:\/\/lexa.od.ua\/blog\/2007\/10\/21\/freebsd-update-software-and-apply-security-patch\/","title":{"rendered":"FreeBSD update software and apply security patch"},"content":{"rendered":"<p><strong>Upgrade FreeBSD ports collection<\/strong><\/p>\n<p>Run portsnap as follows:<br \/>\n<code>portsnap fetch update<\/code><br \/>\nOR<br \/>\n<code>portsnap fetch<br \/>\nportsnap update <\/code><br \/>\n<!--more--><br \/>\nDisplay outdated ports list<\/p>\n<p>You can list outdated ports list with pkg_version command:<br \/>\n<code>pkg_version -vIL=<\/code><\/p>\n<p><strong>Update FreeBSD packages \/ software<\/strong><\/p>\n<p>Now run portmanager to upgrade installed ports:<br \/>\n<code>portmanager -u -l<\/code><\/p>\n<p><strong>How do I upgrade a single software only?<\/strong><\/p>\n<p>portmanager allows you to update a single port and all of its dependencies. For example update port called bash i.e. bash shell (shells\/bash), enter:<br \/>\n<code>portmanager shells\/bash -l -u <\/code><\/p>\n<p><strong>How do I apply binary security updates for FreeBSD?<\/strong><\/p>\n<p>Latest version includes a tool called freebsd-update (thanks to Bok for pointing out this tool). The freebsd-update tool is used to fetch, install, and rollback binary updates to the FreeBSD base system.<br \/>\nFetch updates<\/p>\n<p>Use fetch option to get all available binary updates:<br \/>\n<code>freebsd-update fetch<\/code><\/p>\n<p><strong>Install updates<\/strong><\/p>\n<p>Install the most recently fetched updates:<br \/>\n<code>freebsd-update install<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Upgrade FreeBSD ports collection Run portsnap as follows: portsnap fetch update OR portsnap fetch portsnap update<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-unix"],"_links":{"self":[{"href":"https:\/\/lexa.od.ua\/blog\/wp-json\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lexa.od.ua\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lexa.od.ua\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lexa.od.ua\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/lexa.od.ua\/blog\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":1,"href":"https:\/\/lexa.od.ua\/blog\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":228,"href":"https:\/\/lexa.od.ua\/blog\/wp-json\/wp\/v2\/posts\/49\/revisions\/228"}],"wp:attachment":[{"href":"https:\/\/lexa.od.ua\/blog\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lexa.od.ua\/blog\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lexa.od.ua\/blog\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}