{"id":333,"date":"2024-04-19T09:08:21","date_gmt":"2024-04-19T15:08:21","guid":{"rendered":"https:\/\/tekweis.com\/?p=333"},"modified":"2024-04-19T09:25:36","modified_gmt":"2024-04-19T15:25:36","slug":"replacing-apt-with-nala","status":"publish","type":"post","link":"https:\/\/tekweis.com\/index.php\/2024\/04\/19\/replacing-apt-with-nala\/","title":{"rendered":"Replacing apt with Nala"},"content":{"rendered":"\n<p>Nala is an improved front-end for the apt package manager in Ubuntu\/Debian Linux. It adds many features and a better visual representation to the activity of the command. A really good article about <a href=\"https:\/\/gitlab.com\/volian\/nala\/-\/releases\">Nala<\/a> can be found here at <strong><a href=\"https:\/\/itsfoss.com\/nala\/\">ItsFoss<\/a><\/strong>. There are many more features and arguments to nala than the normal apt command offers.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"514\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala3-1024x514.png\" alt=\"\" class=\"wp-image-336\" style=\"width:840px;height:auto\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala3-1024x514.png 1024w, https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala3-300x151.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala3-768x385.png 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala3-660x331.png 660w, https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala3.png 1064w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Nala upgrade in use.<\/figcaption><\/figure>\n<\/div>\n\n\n<p>I&#8217;ve decided to create an alias to stop me from using the apt command to using nala. To make sure the alias is persistent after every session or login, I needed to add the following alias commands to the bottom of my <strong>.bashrc<\/strong> file.<\/p>\n\n\n\n<pre class=\"wp-block-code has-cyan-bluish-gray-background-color has-background\"><code># Added alias for nala to be used instead of apt.\nalias apt='\\nala'\nalias dapt='\\apt'\n# For aliases to work with sudo:\nalias sudo='sudo '\n<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1015\" height=\"554\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala1.jpg\" alt=\"\" class=\"wp-image-334\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala1.jpg 1015w, https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala1-300x164.jpg 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala1-768x419.jpg 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala1-660x360.jpg 660w\" sizes=\"auto, (max-width: 1015px) 100vw, 1015px\" \/><\/figure>\n<\/div>\n\n\n<p>Now save and exit the shell. Enter back into your terminal and when I run sudo apt update, I get nala running instead.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1012\" height=\"449\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala2.png\" alt=\"\" class=\"wp-image-335\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala2.png 1012w, https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala2-300x133.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala2-768x341.png 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2024\/04\/nala2-660x293.png 660w\" sizes=\"auto, (max-width: 1012px) 100vw, 1012px\" \/><figcaption class=\"wp-element-caption\">Running sudo apt upgrade runs through nala now.<\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nala is an improved front-end for the apt package manager in Ubuntu\/Debian Linux. It adds many features and a better visual representation to the activity of the command. A really good article about Nala can be found here at ItsFoss. There are many more features and arguments to nala than the normal apt command offers.\u2026 <span class=\"read-more\"><a href=\"https:\/\/tekweis.com\/index.php\/2024\/04\/19\/replacing-apt-with-nala\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-333","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/comments?post=333"}],"version-history":[{"count":3,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/333\/revisions"}],"predecessor-version":[{"id":339,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/333\/revisions\/339"}],"wp:attachment":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/media?parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/categories?post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/tags?post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}