LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-18-2015, 05:43 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 9.2
Posts: 1,208

Rep: Reputation: 51
How to reinstall Debian and extra applications?


I reinstall Debian on a regular basis and my biggest problem is to reinstall the extra applications I need with Synaptic. So far, I reinstall them one at a time when I discover it's not there and I need it.

Is there an easy way to do that automatically?

Thank you for your help.
 
Old 04-18-2015, 07:12 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873Reputation: 4873
Actually, yes, there is and it is really easy:
At first, we need the list of installed packages on from the system that you want to "re-fresh":
Code:
dpkg --get-selections > packages
Save that file in a location that can be accessed later from the newly installed system, like an USB storage device. Also, make a backup of all the config files you want to keep, if you haven't already.
Then go ahead and install the new system, the minimal installation is all we need.
If you have done that we need to tell dpkg about the packages you want to have installed on the system, for that we feed it with the package list we have created in the first step:
Code:
dpkg --set-selections < packages
Now all we have to do is to tell the package manager to actually install those packages:
Code:
apt-get dselect-upgrade
Done, system installation complete. If you now just copy in the config files you have backed up from the previous system you have a fresh and clean re-install of your system.

Last edited by TobiSGD; 04-18-2015 at 07:13 AM.
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra applications for Digikam ? kikinovak Slackware 4 10-01-2014 01:43 PM
LXer: Easily Install Extra Applications In Fedora Using Autoplus Or Fedora Utils LXer Syndicated Linux News 0 07-05-2011 12:30 PM
Installing fedora without the extra applications. ziggy25 Linux - Newbie 20 07-31-2009 01:14 AM
Why those extra run-levels in Debian? kushalkoolwal Debian 1 03-17-2009 07:09 PM
How to map my extra keys to my applications? gregorian Linux - Newbie 2 02-25-2007 09:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration