{"id":8370,"date":"2019-01-19T23:37:54","date_gmt":"2019-01-19T23:37:54","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=8370"},"modified":"2019-03-09T02:09:02","modified_gmt":"2019-03-09T02:09:02","slug":"how-to-keep-a-debian-network-installation-up-to-date-linux-hint","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/01\/19\/how-to-keep-a-debian-network-installation-up-to-date-linux-hint\/","title":{"rendered":"How to keep a Debian Network installation up-to-date \u2013 Linux Hint"},"content":{"rendered":"<p>The Linux distribution Debian GNU\/Linux [1] is made available as different CD\/DVD ISO images. These images are prepared to fit to the needs of different interests and usage cases \u2014 desktop environment, server, or mobile devices. At present, the following image variants are offered from the website of the Debian project and the according mirror network:<\/p>\n<ul>\n<li>a full set of CD\/DVD images that contains all the available packages[2]<\/li>\n<li>a single CD\/DVD image with a selection of packages that are tailor-made for a specific desktop environment \u2014 GNOME [3], XFCE [4], and for the commandline, only.<\/li>\n<li>a smaller CD image for network-based installation [5]<\/li>\n<li>a tiny CD image for network-based installation [5]<\/li>\n<li>a live CD\/DVD [6] in order to test Debian GNU\/Linux before installing it<\/li>\n<li>a cloud image [7]<\/li>\n<\/ul>\n<p>Downloading the right image file depends on your internet connection (bandwidth), which combination of packages fits your needs, and your level of experience in order to setup and maintain your installation. All the images are available from the mirror network behind the website of the Debian project [8].<\/p>\n<div class=\"sZt29IUt\"><\/div>\n<h3><strong>What is Debian Netinstall?<\/strong><\/h3>\n<p>As already briefly discussed above a Netinstall image is a smaller CD\/DVD image with a size between 150Mb and 300Mb. The actual image size depends on the processor architecture used on your system. Solely, the image contains the setup routines (called Debian Installer) for both text-only and graphical installation as well as the software packages in order to setup a very basic but working Debian GNU\/Linux installation. In contrast, the tiny image with a size of about 120Mb contains the Debian Installer, and the network configuration, only.<\/p>\n<div class=\"qdx8kcew\"><\/div>\n<p>During the setup, the Debian Installer will ask you which Apt repository you would like to use. An Apt repository is a place that provides the Debian software packages. The tools for package management will retrieve the selected software packages from this location, and install them locally on your system. In this case as an Apt repository we do not use the CD\/DVD but a so-called package mirror. This package mirror is a server that is connected to the internet, and that is why internet\u00a0access is required during the setting up of your system. Furthermore, installing new software or updating existing software packages needs to meet the same technical requirements as above \u2014 the packages are retrieved from the same Apt repository too.<\/p>\n<div id=\"attachment_35438\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-35438\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/1-29.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/1-29.png 800w, https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/1-29-300x225.png 300w, https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/1-29-768x576.png 768w\" alt=\"\" width=\"800\" height=\"600\" \/><\/p>\n<p class=\"wp-caption-text\">Choosing the desired package mirror in Debian GNU\/Linux 9<\/p>\n<\/div>\n<h3><strong>Apt Repositories<\/strong><span id=\"ezoic-pub-ad-placeholder-141\" class=\"ezoic-adpicker-ad\"><\/span><\/h3>\n<p>The address of the chosen Apt repository is stored in the file \/etc\/apt\/sources.list. In general, this is a text file and contains several entries. According to the previously chosen package mirror it looks as follows:<\/p>\n<div class=\"codecolorer-container bash default\">\n<div class=\"bash codecolorer\">deb http:<span class=\"sy0\">\/\/<\/span>ftp.us.debian.org<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span>\u00a0stretch main contrib<br \/>\ndeb-src http:<span class=\"sy0\">\/\/<\/span>ftp.us.debian.org<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span>\u00a0stretch main contrib<\/p>\n<p>deb http:<span class=\"sy0\">\/\/<\/span>security.debian.org<span class=\"sy0\">\/<\/span>\u00a0stretch<span class=\"sy0\">\/<\/span>updates main contrib<br \/>\ndeb-src http:<span class=\"sy0\">\/\/<\/span>security.debian.org<span class=\"sy0\">\/<\/span>\u00a0stretch<span class=\"sy0\">\/<\/span>updates main contrib<\/p>\n<p><span class=\"co0\"># stretch-updates, previously known as &#8216;volatile&#8217;<\/span><br \/>\ndeb http:<span class=\"sy0\">\/\/<\/span>ftp.us.debian.org<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span>\u00a0stretch-updates main contrib<\/div>\n<\/div>\n<p>The first group of lines refers to regular software packages, the second group to the according security updates, and the third group to software updates for these packages. Each line refers to Debian packages (a line starting with deb), or Debian source packages (a line starting with deb-src). Source packages are of interest for you in case you would like to download the source code of the software you use.<\/p>\n<p>The Debian GNU\/Linux release is either specified by the alias name of the release \u2014 here it is Stretch from Toy Story [9] \u2013, or its release state, for example stable, testing, or unstable. At the end of each line, main and contrib reflect the chosen package categories. The keyword main refers to free software, contrib refers to free software that depends on non-free software, and non-free indicates software packages that do not meet the Debian Free Software Guidelines (DFSG)[10].<\/p>\n<h3><strong>Finding the right package mirror<\/strong><\/h3>\n<p>Up until now our setup is based on static entries, only, that are not intended to change. This works well for computers that are kept mostly at the same place during their entire usage.<\/p>\n<p>As of a Debian network installation, the right package mirror plays an important role. When choosing a package mirror take the following criteria into account:<\/p>\n<ul>\n<li>your network connection<\/li>\n<li>your geographic location<\/li>\n<li>the desired availability of the package mirror<\/li>\n<li>reliability<\/li>\n<\/ul>\n<p>Experiences from managing Linux systems for the last decade show, that chosing a primary package mirror in the same country as the system works best. Such a package mirror should be network-wise nearby, and provide software packages for all the architectures we need. Reliability refers to the person, institute, or company that is responsible for the package mirror we retrieve software from.<\/p>\n<p>A rather dynamic setup can be helpful for mobile devices such as laptops and notebooks. The two commands netselect [11] and netselect-apt [12] come into play. netselect simply expects a list of package mirrors, and validates them regarding availability, ping time as well as the packet loss between the package mirror and your system. The example below demonstrates this for five different mirrors. The last line of the output contains the result \u2014 the recommended package mirror is ftp.debian.org.<\/p>\n<div class=\"codecolorer-container bash default\">\n<div class=\"bash codecolorer\"><span class=\"co0\"># netselect -vv ftp.debian.org http.us.debian.org ftp.at.debian.org download.unesp.br<\/span><br \/>\nftp.debian.org.br netselect: unknown host ftp.debian.org.br<br \/>\nRunning netselect to choose\u00a0<span class=\"nu0\">1<\/span>\u00a0out of\u00a0<span class=\"nu0\">8<\/span>\u00a0addresses.<br \/>\n&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<br \/>\n128.61.240.89\u00a0<span class=\"nu0\">141<\/span>\u00a0ms\u00a0<span class=\"nu0\">8<\/span>\u00a0hops\u00a0<span class=\"nu0\">88<\/span><span class=\"sy0\">%<\/span>\u00a0ok\u00a0<span class=\"br0\">(<\/span>\u00a0<span class=\"nu0\">8<\/span><span class=\"sy0\">\/<\/span>\u00a0<span class=\"nu0\">9<\/span><span class=\"br0\">)<\/span>\u00a0<span class=\"br0\">[<\/span>\u00a0<span class=\"nu0\">284<\/span><span class=\"br0\">]<\/span><br \/>\nftp.debian.org\u00a0<span class=\"nu0\">41<\/span>\u00a0ms\u00a0<span class=\"nu0\">8<\/span>\u00a0hops\u00a0<span class=\"nu0\">100<\/span><span class=\"sy0\">%<\/span>\u00a0ok\u00a0<span class=\"br0\">(<\/span><span class=\"nu0\">10<\/span><span class=\"sy0\">\/<\/span><span class=\"nu0\">10<\/span><span class=\"br0\">)<\/span>\u00a0<span class=\"br0\">[<\/span>\u00a0<span class=\"nu0\">73<\/span><span class=\"br0\">]<\/span><br \/>\n128.30.2.36\u00a0<span class=\"nu0\">118<\/span>\u00a0ms\u00a0<span class=\"nu0\">19<\/span>\u00a0hops\u00a0<span class=\"nu0\">100<\/span><span class=\"sy0\">%<\/span>\u00a0ok\u00a0<span class=\"br0\">(<\/span><span class=\"nu0\">10<\/span><span class=\"sy0\">\/<\/span><span class=\"nu0\">10<\/span><span class=\"br0\">)<\/span>\u00a0<span class=\"br0\">[<\/span>\u00a0<span class=\"nu0\">342<\/span><span class=\"br0\">]<\/span><br \/>\n64.50.233.100\u00a0<span class=\"nu0\">112<\/span>\u00a0ms\u00a0<span class=\"nu0\">14<\/span>\u00a0hops\u00a0<span class=\"nu0\">66<\/span><span class=\"sy0\">%<\/span>\u00a0ok\u00a0<span class=\"br0\">(<\/span>\u00a0<span class=\"nu0\">2<\/span><span class=\"sy0\">\/<\/span>\u00a0<span class=\"nu0\">3<\/span><span class=\"br0\">)<\/span>\u00a0<span class=\"br0\">[<\/span>\u00a0<span class=\"nu0\">403<\/span><span class=\"br0\">]<\/span><br \/>\n64.50.236.52\u00a0<span class=\"nu0\">133<\/span>\u00a0ms\u00a0<span class=\"nu0\">15<\/span>\u00a0hops\u00a0<span class=\"nu0\">100<\/span><span class=\"sy0\">%<\/span>\u00a0ok\u00a0<span class=\"br0\">(<\/span><span class=\"nu0\">10<\/span><span class=\"sy0\">\/<\/span><span class=\"nu0\">10<\/span><span class=\"br0\">)<\/span>\u00a0<span class=\"br0\">[<\/span>\u00a0<span class=\"nu0\">332<\/span><span class=\"br0\">]<\/span><br \/>\nftp.at.debian.org\u00a0<span class=\"nu0\">47<\/span>\u00a0ms\u00a0<span class=\"nu0\">13<\/span>\u00a0hops\u00a0<span class=\"nu0\">100<\/span><span class=\"sy0\">%<\/span>\u00a0ok\u00a0<span class=\"br0\">(<\/span><span class=\"nu0\">10<\/span><span class=\"sy0\">\/<\/span><span class=\"nu0\">10<\/span><span class=\"br0\">)<\/span>\u00a0<span class=\"br0\">[<\/span>\u00a0<span class=\"nu0\">108<\/span><span class=\"br0\">]<\/span><br \/>\ndownload.unesp.br\u00a0<span class=\"nu0\">314<\/span>\u00a0ms\u00a0<span class=\"nu0\">10<\/span>\u00a0hops\u00a0<span class=\"nu0\">75<\/span><span class=\"sy0\">%<\/span>\u00a0ok\u00a0<span class=\"br0\">(<\/span>\u00a0<span class=\"nu0\">3<\/span><span class=\"sy0\">\/<\/span>\u00a0<span class=\"nu0\">4<\/span><span class=\"br0\">)<\/span>\u00a0<span class=\"br0\">[<\/span>\u00a0<span class=\"nu0\">836<\/span><span class=\"br0\">]<\/span><br \/>\nftp.debian.org.br\u00a0<span class=\"nu0\">9999<\/span>\u00a0ms\u00a0<span class=\"nu0\">30<\/span>\u00a0hops\u00a0<span class=\"nu0\">0<\/span><span class=\"sy0\">%<\/span>\u00a0ok<br \/>\n<span class=\"nu0\">73<\/span>\u00a0ftp.debian.org<br \/>\n<span class=\"co0\">#<\/span><\/div>\n<\/div>\n<p>In contrast, netselect-apt uses netselect to find the best package mirror for your location. netselect-apt asks for the country (-c), the number of package mirrors (-t), the architecture (-a), and the release state (-n). The example below discovers the top-five package mirrors in France that offer stable packages for the amd64 architecture:<\/p>\n<div class=\"codecolorer-container bash default\">\n<div class=\"bash codecolorer\"><span class=\"co0\"># netselect-apt -c france -t 5 -a amd64 -n stable<\/span><br \/>\nUsing distribution stable.<br \/>\nRetrieving the list of mirrors from www.debian.org&#8230;<\/p>\n<p><span class=\"re5\">&#8211;2019-01-09<\/span>\u00a0<span class=\"nu0\">11<\/span>:<span class=\"nu0\">47<\/span>:<span class=\"nu0\">21<\/span>&#8212; http:<span class=\"sy0\">\/\/<\/span>www.debian.org<span class=\"sy0\">\/<\/span>mirror<span class=\"sy0\">\/<\/span>mirrors_full<br \/>\nAufl\u221a\u2202sen des Hostnamen \u00ac\u00aawww.debian.org\u00a0<span class=\"br0\">(<\/span>www.debian.org<span class=\"br0\">)<\/span>\u00ac\u00b4&#8230; 130.89.148.14,<br \/>\n5.153.231.4,\u00a0<span class=\"nu0\">2001<\/span>:41c8:<span class=\"nu0\">1000<\/span>:<span class=\"nu0\">21<\/span>::<span class=\"nu0\">21<\/span>:<span class=\"nu0\">4<\/span>, &#8230;<br \/>\nVerbindungsaufbau zu www.debian.org\u00a0<span class=\"br0\">(<\/span>www.debian.org<span class=\"br0\">)<\/span><span class=\"sy0\">|<\/span>130.89.148.14<span class=\"sy0\">|<\/span>:<span class=\"nu0\">80<\/span>&#8230; verbunden.<br \/>\nHTTP-Anforderung gesendet, warte auf Antwort&#8230;\u00a0<span class=\"nu0\">302<\/span>\u00a0Found<br \/>\nPlatz: https:<span class=\"sy0\">\/\/<\/span>www.debian.org<span class=\"sy0\">\/<\/span>mirror<span class=\"sy0\">\/<\/span>mirrors_full<span class=\"br0\">[<\/span>folge<span class=\"br0\">]<\/span><br \/>\n<span class=\"re5\">&#8211;2019-01-09<\/span>\u00a0<span class=\"nu0\">11<\/span>:<span class=\"nu0\">47<\/span>:<span class=\"nu0\">22<\/span>&#8212; https:<span class=\"sy0\">\/\/<\/span>www.debian.org<span class=\"sy0\">\/<\/span>mirror<span class=\"sy0\">\/<\/span>mirrors_full<br \/>\nVerbindungsaufbau zu www.debian.org\u00a0<span class=\"br0\">(<\/span>www.debian.org<span class=\"br0\">)<\/span><span class=\"sy0\">|<\/span>130.89.148.14<span class=\"sy0\">|<\/span>:<span class=\"nu0\">443<\/span>&#8230; verbunden.<br \/>\nHTTP-Anforderung gesendet, warte auf Antwort&#8230;\u00a0<span class=\"nu0\">200<\/span>\u00a0OK<br \/>\nL\u221a\u00a7nge:\u00a0<span class=\"nu0\">189770<\/span>\u00a0<span class=\"br0\">(<\/span>185K<span class=\"br0\">)<\/span>\u00a0<span class=\"br0\">[<\/span>text<span class=\"sy0\">\/<\/span>html<span class=\"br0\">]<\/span><br \/>\nIn \u00ac\u00aa\u00ac\u00aa<span class=\"sy0\">\/<\/span>tmp<span class=\"sy0\">\/<\/span>netselect-apt.Kp2SNk\u00ac\u00b4\u00ac\u00b4 speichern.<\/p>\n<p><span class=\"sy0\">\/<\/span>tmp<span class=\"sy0\">\/<\/span>netselect-apt.Kp2SNk\u00a0<span class=\"nu0\">100<\/span><span class=\"sy0\">%<\/span><span class=\"br0\">[<\/span>==========================================<span class=\"sy0\">&gt;<\/span><span class=\"br0\">]<\/span><br \/>\n<span class=\"nu0\">185<\/span>,32K\u00a0<span class=\"nu0\">1<\/span>,19MB<span class=\"sy0\">\/<\/span>s\u00a0<span class=\"kw1\">in<\/span>\u00a0<span class=\"nu0\">0<\/span>,2s<\/p>\n<p><span class=\"nu0\">2019<\/span>-01-09\u00a0<span class=\"nu0\">11<\/span>:<span class=\"nu0\">47<\/span>:<span class=\"nu0\">22<\/span>\u00a0<span class=\"br0\">(<\/span><span class=\"nu0\">1<\/span>,<span class=\"nu0\">19<\/span>\u00a0MB<span class=\"sy0\">\/<\/span>s<span class=\"br0\">)<\/span>\u00a0&#8211; \u00ac\u00aa\u00ac\u00aa<span class=\"sy0\">\/<\/span>tmp<span class=\"sy0\">\/<\/span>netselect-apt.Kp2SNk\u00ac\u00b4\u00ac\u00b4 gespeichert<br \/>\n<span class=\"br0\">[<\/span><span class=\"nu0\">189770<\/span><span class=\"sy0\">\/<\/span><span class=\"nu0\">189770<\/span><\/p>\n<p>Choosing a main Debian mirror using netselect.<br \/>\n<span class=\"br0\">(<\/span>will filter only\u00a0<span class=\"kw1\">for<\/span>\u00a0mirrors\u00a0<span class=\"kw1\">in<\/span>\u00a0country france<span class=\"br0\">)<\/span><br \/>\nnetselect:\u00a0<span class=\"nu0\">19<\/span>\u00a0<span class=\"br0\">(<\/span><span class=\"nu0\">19<\/span>\u00a0active<span class=\"br0\">)<\/span>\u00a0nameserver request<span class=\"br0\">(<\/span>s<span class=\"br0\">)<\/span>&#8230;<br \/>\nDuplicate address 212.27.32.66\u00a0<span class=\"br0\">(<\/span>http:<span class=\"sy0\">\/\/<\/span>debian.proxad.net<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span>,<br \/>\nhttp:<span class=\"sy0\">\/\/<\/span>ftp.fr.debian.org<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span><span class=\"br0\">)<\/span>; keeping only under first name.<br \/>\nRunning netselect to choose\u00a0<span class=\"nu0\">5<\/span>\u00a0out of\u00a0<span class=\"nu0\">18<\/span>\u00a0addresses.<br \/>\n&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<br \/>\nThe fastest\u00a0<span class=\"nu0\">5<\/span>\u00a0servers seem to be:<\/p>\n<p>http:<span class=\"sy0\">\/\/<\/span>debian.proxad.net<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span><br \/>\nhttp:<span class=\"sy0\">\/\/<\/span>debian.mirror.ate.info<span class=\"sy0\">\/<\/span><br \/>\nhttp:<span class=\"sy0\">\/\/<\/span>debian.mirrors.ovh.net<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span><br \/>\nhttp:<span class=\"sy0\">\/\/<\/span>ftp.rezopole.net<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span><br \/>\nhttp:<span class=\"sy0\">\/\/<\/span>mirror.plusserver.com<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span><\/p>\n<p>Of the hosts tested we choose the fastest valid\u00a0<span class=\"kw1\">for<\/span>\u00a0HTTP:<br \/>\nhttp:<span class=\"sy0\">\/\/<\/span>debian.proxad.net<span class=\"sy0\">\/<\/span>debian<span class=\"sy0\">\/<\/span><\/p>\n<p>Writing sources.list.<br \/>\nDone.<br \/>\n<span class=\"co0\">#<\/span><\/div>\n<\/div>\n<p>The output is a file called sources.list that is stored in the directory you run the command from. Using the additional option \u201c-o filename\u201d you specify an output file with a name and path of your choice.\u00a0Nevertheless, you can directly use the new file as a replacement for your original file \/etc\/apt\/sources.list.<\/p>\n<h3><strong>Software Strategy<\/strong><\/h3>\n<p>Doing a setup from a smaller installation image gives you the opportunity to make decisions which software to use. We recommend to install what you need on your system, only. The less software packages are installed, the less updates have to be done. So far, this strategy works well for server, desktop systems, routers (specialized devices), and mobile devices.<\/p>\n<h3><strong>Keeping your system up-to-date<\/strong><\/h3>\n<p>Maintaining a system means taking care of your setup, and keeping it up-to-date. Install security patches and do software updates regularly, with the help of the package manager like apt.<\/p>\n<p>Often the next step is forgotten \u2014 tidying up your system. This includes removing unused software packages, and cleaning the package cache that is located in \/var\/cache\/apt\/archives. In the first case the commands \u201capt autoremove\u201d, \u201cdeborphan\u201d [13] and \u201cdebfoster\u201d [14] help \u2014 they detect unused packages, and let you specify which software shall be kept. Mostly, the removed packages belong to the categories library (lib and oldlib), or development (libdevel). The following example demonstrates this for the tool deborphan. The output columns represent the package size, the package category, the package name, and the package priority.<\/p>\n<div class=\"codecolorer-container bash default\">\n<div class=\"bash codecolorer\">$ deborphan\u00a0<span class=\"re5\">-Pzs<\/span><br \/>\n<span class=\"nu0\">20<\/span>\u00a0main<span class=\"sy0\">\/<\/span>oldlibs\u00a0<span class=\"kw2\">mktemp<\/span>\u00a0extra<br \/>\n<span class=\"nu0\">132<\/span>\u00a0main<span class=\"sy0\">\/<\/span>libs liblwres40 standard<br \/>\n<span class=\"nu0\">172<\/span>\u00a0main<span class=\"sy0\">\/<\/span>libs libdvd0 optional<br \/>\n&#8230;<br \/>\n$<\/div>\n<\/div>\n<p>In order to remove the orphaned packages you can use the following command:<\/p>\n<div class=\"codecolorer-container bash default\">\n<div class=\"bash codecolorer\"><span class=\"co0\"># apt remove $(deborphan)<\/span><br \/>\n&#8230;<br \/>\n<span class=\"co0\">#<\/span><\/div>\n<\/div>\n<p>Still, it will ask you to confirm before removal of the software packages. Next, cleaning the package cache needs to be done. You may either remove the files by \u201crm \/var\/cache\/apt\/archives\/*.deb\u201d), or use apt or apt-get as follows:<\/p>\n<div class=\"codecolorer-container bash default\">\n<div class=\"bash codecolorer\"><span class=\"co4\">#\u00a0<\/span><span class=\"kw2\">apt-get clean<\/span><\/div>\n<\/div>\n<h3><strong>Dealing with Release Changes<\/strong><\/h3>\n<p>In contrast to other Linux distributions, Debian GNU\/Linux does not have a fixed release cycle. A new release is available about every two years. Version 10 is expected to be published in mid-2019.<\/p>\n<p>Updating your existing setup is comparable easy. Take the following thoughts into account and follow these steps:<\/p>\n<ol>\n<li>Read the documentation for the release change, the so-called Release Notes. They are available from the website of the Debian project, and also part of the image you have chosen before.<\/li>\n<li>Have your credentials for administrative actions at hand.<\/li>\n<li>Open a terminal, and run the next steps in a terminal multiplexer like screen [15] or tmux [16].<\/li>\n<li>Backup the most important data of your system, and validate the backup for being complete.<\/li>\n<li>Update your current package list using \u201capt-get update\u201d or \u201capt update\u201d.<\/li>\n<li>Check your system for orphans and unused software packages using deborphan, or \u201capt-get autoremove\u201d. Unused packages do not need to be updated.<\/li>\n<li>Run the command \u201capt-get upgrade\u201d to install the latest software updates.<\/li>\n<li>Edit the file \/etc\/apt\/sources.list, and set the new distribution name, for example from Stretch to Buster.<\/li>\n<li>Update the package list using \u201capt update\u201d or \u201capt-get update\u201d.<\/li>\n<li>Start the release change by running \u201capt-get dist-upgrade\u201d. All existing packages are updated.<\/li>\n<\/ol>\n<p>The last step may take a while, but leads to a new Debian GNU\/Linux system. It might be helpful to reboot the system once in order to start with a new Linux kernel.<\/p>\n<h4><strong>Conclusion<\/strong><\/h4>\n<p>Setting up a network-based installation, and keeping it alive is simple. Follow the recommendations we gave you in this article, and using your Linux system will be fun.<\/p>\n<h5><strong>Links and References<\/strong><\/h5>\n<p>* [1] Debian GNU\/Linux,\u00a0<a href=\"http:\/\/debian.org\/\">http:\/\/debian.org\/<\/a><br \/>\n* [2] Debian on CDs\/DVDs,\u00a0<a href=\"https:\/\/www.debian.org\/CD\/index.en.html\">https:\/\/www.debian.org\/CD\/index.en.html<\/a><br \/>\n* [3] GNOME,\u00a0<a href=\"https:\/\/www.gnome.org\/\">https:\/\/www.gnome.org\/<\/a><br \/>\n* [4] XFCE,\u00a0<a href=\"https:\/\/xfce.org\/\">https:\/\/xfce.org\/<\/a><br \/>\n* [5] Installing Debian via the Internet,\u00a0<a href=\"https:\/\/www.debian.org\/distrib\/netinst.en.html\">https:\/\/www.debian.org\/distrib\/netinst.en.html<\/a><br \/>\n* [6] Debian Live install images, https:\/\/www.debian.org\/CD\/live\/index.en.html<br \/>\n* [7] Debian Official Cloud Images,\u00a0<a href=\"https:\/\/cloud.debian.org\/images\/cloud\/\">https:\/\/cloud.debian.org\/images\/cloud\/<\/a><br \/>\n* [8] Debian mirror network,\u00a0<a href=\"https:\/\/cdimage.debian.org\/\">https:\/\/cdimage.debian.org\/<\/a><br \/>\n* [9] Stretch at the Pixar Wiki,\u00a0<a href=\"http:\/\/pixar.wikia.com\/wiki\/Stretch\">http:\/\/pixar.wikia.com\/wiki\/Stretch<\/a><br \/>\n* [10] Debian Free Software Guidelines (DFSG),\u00a0<a href=\"https:\/\/wiki.debian.org\/DFSGLicenses\">https:\/\/wiki.debian.org\/DFSGLicenses<\/a><br \/>\n* [11] netselect Debian package,\u00a0<a href=\"https:\/\/packages.debian.org\/stretch\/netselect\">https:\/\/packages.debian.org\/stretch\/netselect<\/a><br \/>\n* [12] netselect-apt Debian package,\u00a0<a href=\"https:\/\/packages.debian.org\/stretch\/netselect-apt\">https:\/\/packages.debian.org\/stretch\/netselect-apt<\/a><br \/>\n* [13] deborphan Debian package,\u00a0<a href=\"https:\/\/packages.debian.org\/stretch\/deborphan\">https:\/\/packages.debian.org\/stretch\/deborphan<\/a><br \/>\n* [14] debfoster Debian package,\u00a0<a href=\"https:\/\/packages.debian.org\/stretch\/debfoster\">https:\/\/packages.debian.org\/stretch\/debfoster<\/a><br \/>\n* [15] screen,\u00a0<a href=\"https:\/\/www.gnu.org\/software\/screen\/\">https:\/\/www.gnu.org\/software\/screen\/<\/a><br \/>\n* [16] tmux,\u00a0<a href=\"https:\/\/github.com\/tmux\/tmux\/wiki\">https:\/\/github.com\/tmux\/tmux\/wiki<\/a><\/p>\n<p><a href=\"https:\/\/linuxhint.com\/update_debian_network_installation\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Linux distribution Debian GNU\/Linux [1] is made available as different CD\/DVD ISO images. These images are prepared to fit to the needs of different interests and usage cases \u2014 desktop environment, server, or mobile devices. At present, the following image variants are offered from the website of the Debian project and the according mirror &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/01\/19\/how-to-keep-a-debian-network-installation-up-to-date-linux-hint\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to keep a Debian Network installation up-to-date \u2013 Linux Hint&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8370","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=8370"}],"version-history":[{"count":2,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8370\/revisions"}],"predecessor-version":[{"id":10868,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8370\/revisions\/10868"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=8370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=8370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=8370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}