<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dselect on Michael’s Domain</title><link>https://jeltsch.org/en/tags/dselect/</link><description>Recent content in Dselect on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/dselect/index.xml" rel="self" type="application/rss+xml"/><item><title>Automated reinstall of software from package list</title><link>https://jeltsch.org/en/automated_reinstall_of_software_from_package_list/</link><pubDate>Sun, 20 Nov 2016 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/automated_reinstall_of_software_from_package_list/</guid><description>&lt;p&gt;If I need to reinstall a Ubuntu/Debian-based Linux OS (or mirror a software selection to another machine), this is how it can be done. On the source machine:&lt;code&gt;sudpkg --get-selections &amp;gt; ~/Package.listcp -R /etc/apt/sources.list* ~/apt-key exportall &amp;gt; ~/repository.keys&lt;/code&gt;Then just copy the files to the target machine:&lt;code&gt;suapt-key add ~/repository.keyscp -R ~/sources.list* /etc/apt/apt-get updateapt-get install dselectdselect updatedpkg --set-selections &amp;lt; ~/Package.listapt-get dselect-upgrade -y&lt;/code&gt;If some packages are not available, this will fail. This concerns in my case manually installed packages like 
 &lt;a href="https://www.teamviewer.com/en/download/linux/" target="_blank" rel="noopener noreferrer nofollow"&gt;teamviewer&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 or 
 &lt;a href="http://www.snapgene.com/products/snapgene/free_trial/" target="_blank" rel="noopener noreferrer nofollow"&gt;snapgene&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
/
 &lt;a href="http://www.snapgene.com/products/snapgene_viewer/" target="_blank" rel="noopener noreferrer nofollow"&gt;snapgene_viewer&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
. I usually remove those packages manually from the list (there are luckily not many of them).However, the upgrade is not fully automatic, since you need to e.g. agree to various licenses (e.g. for Microsoft&amp;rsquo;s True Type fonts) and acknowledge manually other stuff (e.g. libdvd-pkg legal issues), which kind of defeats the purpose of making this automatic and painless…&lt;/p&gt;</description></item><item><title>Reinstallation of packages from a list</title><link>https://jeltsch.org/en/reinstallation_of_packages_from_a_list/</link><pubDate>Fri, 26 Sep 2008 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/reinstallation_of_packages_from_a_list/</guid><description>&lt;p&gt;If I install a new computer for myself (or if I do a fresh reinstall on an old machine), I want the computer have the software I am used to. To automatize this process, there a different approaches. If you use Ubuntu, you can use Ubuntu One to syncronize your software selection across many different machines (starting from Ubuntu 11.10 Oneiric Ocelot). If you use something else, it is getting tricky. You can use the following commands to generate a list of installed packages and load the list later for installation:&lt;code&gt;dpkg --get-selections &amp;gt; installed-packages.lstdpkg --set-selections &amp;lt; installed-packages.lstdselect&lt;/code&gt;However, this creates big problems, because the list contains ALL packages including those that are hardware-specific. Actually you are only interested in the user-installed software. For reloading the software onto the same (or an identical) machine, this command works fine, but what if you want to use KDE instead of Gnome on the new computer? You still want to use the same programs, but the commands above will wreak havoc and may even break your desktop experience. Unfortunately I have not found anything better, but to open the text file generated with dpkg and to manually erase all lines that do not contain user-installed software (which is most of them).&lt;/p&gt;</description></item></channel></rss>