{"id":1048,"date":"2008-11-13T11:56:21","date_gmt":"2008-11-13T10:56:21","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/1048-reasons-to-love-linux-1-package-management.html"},"modified":"2008-11-13T11:56:21","modified_gmt":"2008-11-13T10:56:21","slug":"reasons-to-love-linux-1-package-management","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/1048-reasons-to-love-linux-1-package-management.html","title":{"rendered":"Reasons to love Linux #1: package management"},"content":{"rendered":"<p>I posted recently about a <a href=\"http:\/\/www.itwriting.com\/blog\/1018-a-painful-upgrade-to-ubuntu-intrepid-ibex.html\">difficult Ubuntu upgrade<\/a>, drawing the <a href=\"http:\/\/www.itwriting.com\/blog\/1018-a-painful-upgrade-to-ubuntu-intrepid-ibex.html#comment-112882\">comment<\/a> \u201cWhat do you prefer to do on Linux that you don\u2019t on Windows?\u201d <\/p>\n<p>Today I patched the Debian server which runs this blog. <a href=\"http:\/\/www.linux.co.uk\/docs\/center\/manual\/introduction-to-linux\/home-sweet-home\/installing-new-software\/automating-package-management-and-updates\/apt\">APT<\/a> upgraded the following applications:<\/p>\n<p>MySQL 5<\/p>\n<p>Apache 2.2<\/p>\n<p><a href=\"http:\/\/www.clamav.net\/\">Clam AntiVirus<\/a><\/p>\n<p><a href=\"http:\/\/packages.debian.org\/source\/etch\/tzdata\">Time Zone data<\/a> (tzdata)<\/p>\n<p>Some of these involve several packages, so 16 packages were updated.<\/p>\n<p>Bear in mind that this is a running system, and that MySQL and Apache are in constant heavy use, mostly by WordPress.<\/p>\n<p>I logged on to the terminal and typed a single command:<\/p>\n<blockquote>\n<p>apt-get upgrade<\/p>\n<\/blockquote>\n<p>The package manager took less than a minute to upgrade all the packages, which had already been downloaded via a scheduled job. Services were stopped and started as needed. No reboot needed. Job done.<\/p>\n<p>I guess a few people trying to access this site got a slow response, but that was all.<\/p>\n<p>Now, how long would it take to upgrade IIS, SQL Server and some server anti-virus package on Windows? What are the odds of getting away without a restart?<\/p>\n<p>Admittedly this is not risk-free. I\u2019ve known package management to get messed up on Linux, and it can take many hours to resolve \u2013 but this usually happens on experimental systems. Web servers that stick to the official stable distribution rarely have problems in my experience.<\/p>\n<p>I realise that the comment really referred to desktop Linux, not server, and here the picture is less rosy. In fact, this post was inspired by a difficult upgrade, though in this case it was the entire distribution being updated. Even on the desktop though, the user experience for installing updates and applications is generally much better. <\/p>\n<p>Let\u2019s say I\u2019m looking for an image editor. I click on Add\/Remove and type a search:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.itwriting.com\/images\/ubuntu_add_apps.gif\" \/> <\/p>\n<p>I like the way the apps show popularity. I\u2019d like a few more things like ratings and comments; but it\u2019s a start. <a href=\"http:\/\/www.inkscape.org\/index.php?lang=en\">Inkscape<\/a> looks interesting, so I check it, click Apply Changes, and shortly after I get this dialog:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.itwriting.com\/images\/inkscape_install.gif\" \/> <\/p>\n<p>I double-click, and there it is:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.itwriting.com\/images\/inkscape_example.gif\" \/> <\/p>\n<p>I admit, I did take a few moments to download an <a href=\"http:\/\/www.w3schools.com\/svg\/svg_examples.asp\">example SVG file from the W3C<\/a>, just to make the screen grab look better. But provided you have broadband, and the app you want is in the list, it is a great experience.<\/p>\n<p>Windows Vista has had a go at this. From Control Panel \u2013 Programs and Features you can get to <a href=\"http:\/\/www.windowsmarketplace.com\">Windows Marketplace<\/a>, where you might search and find something like <a href=\"http:\/\/www.windowsmarketplace.com\/details.aspx?view=info&amp;itemid=2849252\">The Gimp<\/a> (free)&#160; or <a href=\"http:\/\/www.windowsmarketplace.com\/details.aspx?view=info&amp;itemid=6008353\">Sketsa SVG Editor<\/a> (costs). I tried The Gimp, to be more like-with-like. I had to sign in with a Live ID even though it is free. I went through several web dialogs and ended up with a download prompt for a zipped setup. That was it. <\/p>\n<p>In other words, I went through all these steps, but I still do not have The Gimp. OK, I know I have to extract the ZIP and run the setup; but Ubuntu\u2019s Add\/Remove spares me all that complication; it is way ahead in usability.<\/p>\n<p><a href=\"http:\/\/www.apple.com\/iphone\/appstore\/\">App Store on the iPhone<\/a> also has it right. For the user, that is. I detest the lock-in and the business model; but usability generally wins. The online stores on games consoles, like <a href=\"http:\/\/www.xbox.com\/en-US\/live\/marketplace\/\">XBox Live Marketplace<\/a>, are good as well. I guess one day we will install or buy most applications this way.<\/p>\n<div class=\"wlWriterEditableSmartContent\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:491fcff1-1035-4a8a-acb6-e17b6367bf9f\" style=\"padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px\">Technorati tags: <a href=\"http:\/\/technorati.com\/tags\/linux\" rel=\"tag\">linux<\/a>, <a href=\"http:\/\/technorati.com\/tags\/ubuntu\" rel=\"tag\">ubuntu<\/a>, <a href=\"http:\/\/technorati.com\/tags\/apple\" rel=\"tag\">apple<\/a>, <a href=\"http:\/\/technorati.com\/tags\/iphone\" rel=\"tag\">iphone<\/a>, <a href=\"http:\/\/technorati.com\/tags\/xbox\" rel=\"tag\">xbox<\/a>, <a href=\"http:\/\/technorati.com\/tags\/apt\" rel=\"tag\">apt<\/a>, <a href=\"http:\/\/technorati.com\/tags\/vista\" rel=\"tag\">vista<\/a>, <a href=\"http:\/\/technorati.com\/tags\/windows\" rel=\"tag\">windows<\/a>, <a href=\"http:\/\/technorati.com\/tags\/microsoft\" rel=\"tag\">microsoft<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I posted recently about a difficult Ubuntu upgrade, drawing the comment \u201cWhat do you prefer to do on Linux that you don\u2019t on Windows?\u201d Today I patched the Debian server which runs this blog. APT upgraded the following applications: MySQL 5 Apache 2.2 Clam AntiVirus Time Zone data (tzdata) Some of these involve several packages, &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/1048-reasons-to-love-linux-1-package-management.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Reasons to love Linux #1: package management<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52,79,91,93,97],"tags":[],"class_list":["post-1048","post","type-post","status-publish","format-standard","hentry","category-linux","category-software","category-ubuntu","category-vista","category-windows"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/1048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=1048"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/1048\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=1048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=1048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=1048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}