{"id":892,"date":"2016-01-27T12:32:39","date_gmt":"2016-01-27T19:32:39","guid":{"rendered":"http:\/\/homepages.uc.edu\/~yaozo\/wordpress\/?p=892"},"modified":"2022-11-22T05:50:28","modified_gmt":"2022-11-22T05:50:28","slug":"how-to-install-updates-via-command-line","status":"publish","type":"post","link":"https:\/\/zhuoyao.net\/index.php\/2016\/01\/27\/how-to-install-updates-via-command-line\/","title":{"rendered":"How to install updates via command line?"},"content":{"rendered":"<table>\n<tbody>\n<tr>\n<td class=\"votecell\">\n<div class=\"vote\"><\/div>\n<\/td>\n<td class=\"postcell\">\n<div>\n<div class=\"post-text\">\n<p>When I log into my web server via SSH I see the information:<\/p>\n<pre><code>88 packages can be updated.\n80 updates are security updates\n<\/code><\/pre>\n<p>I tried <code>apt-get update<\/code> then <code>apt-get upgrade<\/code> but each time I log in I still see the message about updates. How do I install them?<\/p>\n<\/div>\n<div class=\"post-text\">\n<p>Try this:<\/p>\n<pre><code>sudo apt-get update        # Fetches the list of available updates\nsudo apt-get upgrade       # Strictly upgrades the current packages\nsudo apt-get dist-upgrade  # Installs updates (new ones)\n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>When I log into my web server via SSH I see the information: 88 packages can be updated. 80 updates are security updates I tried&hellip; <\/p>\n","protected":false},"author":1,"featured_media":965,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-892","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/comments?post=892"}],"version-history":[{"count":1,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/892\/revisions"}],"predecessor-version":[{"id":969,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/892\/revisions\/969"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/media\/965"}],"wp:attachment":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/media?parent=892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/categories?post=892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/tags?post=892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}