{"id":7496,"date":"2023-11-24T23:12:45","date_gmt":"2023-11-24T17:42:45","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=7496"},"modified":"2023-11-24T23:13:21","modified_gmt":"2023-11-24T17:43:21","slug":"how-to-upgrade-gitlab-to-the-latest-version","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-upgrade-gitlab-to-the-latest-version\/","title":{"rendered":"How to upgrade Gitlab to the latest version"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Introduction<\/strong> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GitLab is a web-based Git repository that\u00a0provides free open and private repositories, issue-following capabilities, and wikis. It is a complete DevOps platform that enables professionals to perform all the tasks in a project\u2014from project planning and source code management to monitoring and security<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prerequisites<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>A sudo privileged user to SSH the server <\/li>\n\n\n\n<li>Gitlab credential to verify the functionality<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Implementation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 1: SSH to the server where the Gitlab has been installed<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ ssh user@IP<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2: Update the available packages<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ sudo apt-get update<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-10.38.55-PM.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"537\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-10.38.55-PM-1024x537.png\" alt=\"\" class=\"wp-image-7497\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-10.38.55-PM-1024x537.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-10.38.55-PM-300x157.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-10.38.55-PM-768x402.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-10.38.55-PM-572x300.png 572w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-10.38.55-PM.png 1290w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 3: Update the Gitlab to the latest version <br><br>(I) If the edition is Community Edition (CE) execute the below command<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ sudo apt-get install gitlab-ce<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/image-2.png\"><img decoding=\"async\" width=\"1024\" height=\"262\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/image-2-1024x262.png\" alt=\"\" class=\"wp-image-7498\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/image-2-1024x262.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/image-2-300x77.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/image-2-768x197.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/image-2-850x218.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/image-2.png 1312w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">(II) If the edition is Enterprise Edition (EE) execute the below command<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ sudo apt-get install gitlab-ee<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-11.04.10-PM.png\"><img decoding=\"async\" width=\"1024\" height=\"202\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-11.04.10-PM-1024x202.png\" alt=\"\" class=\"wp-image-7500\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-11.04.10-PM-1024x202.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-11.04.10-PM-300x59.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-11.04.10-PM-768x152.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-11.04.10-PM-1536x304.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-11.04.10-PM-850x168.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-11.04.10-PM.png 1558w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 4: Restart the Gitlab <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$ sudo gitlab-ctl restart<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 5: Log in to  the Gitlab and navigate to the help to verify the version<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-11.10.56-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"486\" height=\"832\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-11.10.56-PM.png\" alt=\"\" class=\"wp-image-7501\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-11.10.56-PM.png 486w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/11\/Screen-Shot-2023-11-24-at-11.10.56-PM-175x300.png 175w\" sizes=\"(max-width: 486px) 100vw, 486px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Introduction GitLab is a web-based Git repository that\u00a0provides free open and private repositories, issue-following capabilities, and wikis. It is a [&hellip;]<\/p>\n","protected":false},"author":495,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1020],"tags":[397],"class_list":["post-7496","post","type-post","status-publish","format-standard","hentry","category-containers-kubernetes","tag-gitlab","psol-cat-containers-kubernetes"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1WU","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/495"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=7496"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7496\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=7496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=7496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=7496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}