LinuxQuestions.org
Visit Jeremy's Blog.
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, 04:43 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,302

Rep: Reputation: 52
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, 06:12 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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 06: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 12:43 PM
LXer: Easily Install Extra Applications In Fedora Using Autoplus Or Fedora Utils LXer Syndicated Linux News 0 07-05-2011 11:30 AM
Installing fedora without the extra applications. ziggy25 Linux - Newbie 20 07-31-2009 12:14 AM
Why those extra run-levels in Debian? kushalkoolwal Debian 1 03-17-2009 06:09 PM
How to map my extra keys to my applications? gregorian Linux - Newbie 2 02-25-2007 08:16 PM

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

All times are GMT -5. The time now is 07:53 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