{"id":20071,"date":"2016-10-28T07:43:22","date_gmt":"2016-10-28T12:43:22","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=20071"},"modified":"2022-06-03T03:42:34","modified_gmt":"2022-06-03T08:42:34","slug":"update-the-software-on-linux","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/","title":{"rendered":"How to update the software on Linux"},"content":{"rendered":"
<\/div>

\"How<\/p>\n

We’ll show you, How to update the software on Linux. Keeping your software up to date is one of the first and most important things you need to do after getting a VPS<\/a>. Many critical vulnerabilities are patched by the time they become public so if you do not update your software frequently then your server is at a big risk of being exploited. In this tutorial, we will show you how to update the system software on your Linux VPS running CentOS or Ubuntu as an operating system. Updating software on Linux, is an easy task, just carefully follow the steps bellow.<\/p>\n

<\/p>\n

The process of system software update is fairly simple and requires only a few minutes of your time. To update the system software on your server you need to connect to your server via SSH. If you do not know how to do this, we have a written tutorial about how to connect to your Linux VPS via SSH<\/a> so you can follow the steps described in that tutorial. Once you are connected to your server you can continue with the steps below.<\/p>\n

The first thing you need to do is to determine whether any updates are available for the packages installed on your server.<\/p>\n

If you have a CentOS VPS<\/a>, run the following command:<\/p>\n

# yum check-update<\/pre>\n

If you have an Ubuntu VPS<\/a>, run the following command:<\/p>\n

# apt-get update && apt-get -s upgrade<\/pre>\n

The commands above will list the packages that are upgradable and you can choose whether to upgrade a single package or to upgrade all the packages installed on your server.<\/p>\n

How to upgrade all the packages using a single command:<\/h2>\n

If you have a CentOS VPS<\/a>, run the following command:<\/p>\n

# yum update<\/pre>\n

You will be asked to confirm the update. Press y<\/code> and then Enter<\/code> and the update procedure will start.<\/p>\n

If you have an Ubuntu VPS<\/a>, run the following command:<\/p>\n

# apt-get update && apt-get upgrade<\/pre>\n

Your system will ask you to confirm the update. Press y<\/code> and then Enter<\/code> and the update procedure will start.<\/p>\n

Depending on the number and the size of the packages that need to be updated, the update process could take from several seconds to a few minutes. Once the update process is completed, your system software will be up to date. Keep in mind that you need to do this frequently if you’d like your system to run the latest software which contains the most recent critical vulnerability patches as well as important bug fixes. For peace of mind, you can enable automatic updates<\/a> (optional, but recommended), so you don’t have to manually check for updates. Enabling automatic updates will save you quite a lot of time, and it will leave your VPS secure and constantly up to date.<\/p>\n


\n

Of course, you don\u2019t have to\u00a0update the software on Linux, if you use one of our Managed VPS hosting<\/a> services, in which case you can simply ask our expert Linux admins to update the software on your Linux server for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n

PS<\/span><\/strong>. If you liked this post, on\u00a0How to update the software on Linux,\u00a0 please share it with your friends on the social networks using the buttons or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"

We’ll show you, How to update the software on Linux. Keeping your software up to date is one of the … <\/p>\n

Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":25027,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[27],"yoast_head":"\nHow to update the software on Linux - RoseHosting<\/title>\n<meta name=\"description\" content=\"How to update the software on Linux - RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to update the software on Linux - RoseHosting\" \/>\n<meta property=\"og:description\" content=\"How to update the software on Linux - RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-28T12:43:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:42:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-update-the-software-on-Linux.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to update the software on Linux\",\"datePublished\":\"2016-10-28T12:43:22+00:00\",\"dateModified\":\"2022-06-03T08:42:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/\"},\"wordCount\":537,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-update-the-software-on-Linux.jpg\",\"keywords\":[\"Linux\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/\",\"name\":\"How to update the software on Linux - RoseHosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-update-the-software-on-Linux.jpg\",\"datePublished\":\"2016-10-28T12:43:22+00:00\",\"dateModified\":\"2022-06-03T08:42:34+00:00\",\"description\":\"How to update the software on Linux - RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#primaryimage\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-update-the-software-on-Linux.jpg\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-update-the-software-on-Linux.jpg\",\"width\":1200,\"height\":600,\"caption\":\"How to update the software on Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.rosehosting.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to update the software on Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"name\":\"RoseHosting\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/RoseHosting\",\"https:\/\/x.com\/rosehosting\",\"https:\/\/www.linkedin.com\/in\/rosehosting\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\/\/www.rosehosting.com\",\"https:\/\/www.facebook.com\/rosehosting.helpdesk\"],\"url\":\"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to update the software on Linux - RoseHosting","description":"How to update the software on Linux - RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to update the software on Linux - RoseHosting","og_description":"How to update the software on Linux - RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2016-10-28T12:43:22+00:00","article_modified_time":"2022-06-03T08:42:34+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-update-the-software-on-Linux.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to update the software on Linux","datePublished":"2016-10-28T12:43:22+00:00","dateModified":"2022-06-03T08:42:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/"},"wordCount":537,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-update-the-software-on-Linux.jpg","keywords":["Linux"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/","url":"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/","name":"How to update the software on Linux - RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-update-the-software-on-Linux.jpg","datePublished":"2016-10-28T12:43:22+00:00","dateModified":"2022-06-03T08:42:34+00:00","description":"How to update the software on Linux - RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-update-the-software-on-Linux.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-update-the-software-on-Linux.jpg","width":1200,"height":600,"caption":"How to update the software on Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to update the software on Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"]},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20071"}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=20071"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20071\/revisions"}],"predecessor-version":[{"id":41919,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20071\/revisions\/41919"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/25027"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=20071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=20071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=20071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}