LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2017, 12:03 AM   #1
electroken
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
looking for a way to do what was done with Remastersys. list of programs installed so I can duplicate them on another install.


I once used remastersys to make a disro of my own installation with the hope of using that to make a new installation on another computer which would result with it having all the same programs installed after the linux os had been installed.
Not sure how to convey what I want here, but maybe some will understand my intent.
After several days or maybe weeks after I would install a new version of linux Mint on my computer I had most all of the software I needed. After many weeks or months my install would be fine-tuned with more programs I found I liked or thought I needed but I had no definitive list of them.
When that computer crashed or when I wanted to do a new install on a friends computer, I wanted to also install the extra programs I had on my computer at home and found it was difficult to duplicate what I had going on my own computer.
I tried Remastersys and it worked fairly well but it had not been supported and brought up to date.
Someone had told me there was a program which could make a list of my installed programs (ones in addition to the ones on the iso provided on a download from linux mint site) and I would be able to use that to duplicate my other installation.
Is there something like I an looking to find which has this property?
Thanks
PS Just trying to find a way to dupicate what I added (to say my os such as linux mint 17.3) and be able to get all the same programs installed on another computer install of linux mint 17.3. I know remastersys had be making an iso of my current install but that seems more than is needed. I only want to have a way of going to the repository and installing the same list of items.

Last edited by electroken; 06-18-2017 at 12:08 AM. Reason: add to end and say what I want to accomplish
 
Old 06-18-2017, 09:55 AM   #2
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
There are 2 different scenarios for duplicating your installed programs:
1) You are duplicating the same version and desktop (that is: Mint 17.3 Cinnamon to Mint 17.3 Cinnamon)
2) You are duplicating the programs to a different version or desktop (that is: Mint 17.3 Cinnamon to Mint 18.1 Cinnamon)

In both scenarios, you can copy all of the .deb files in /var/cache/apt/archives from the original OS to /var/cache/apt/archives in the new OS. That will save you some download time.

In both scenarios, you can copy all of the hidden configuration files for your installed programs from the original OS to the new one.
For example, I copy:
.avidemux
.config/Pinta
.config/puddletag
.config/roxterm.sourceforge.net
.config/smplayer
.config/vlc
.config/clipit
.filezilla
.gimp-2.8
ETC...

I configure any PPA's that I use. (Google Chrome, multisystem and ubuntuzilla)
Run:
Code:
sudo apt-get update
Then I install all of the programs I use with one command:
Code:
sudo apt-get -y --show-progress install  acetoneiso album apport-gtk asunder bluefish boot-info-script clipit converseen cthumb dconf-tools filezilla fsarchiver geany gimp gnome-brave-icon-theme gnome-color-chooser gnome-logs gnome-search-tool google-chrome-stable gparted gpick grml-rescueboot grsync gsmartcontrol gtkhash gwenrename hardinfo htop imagemagick-doc inkscape leafpad medit meld mint-meta-codecs multisystem nemo-image-converter openshot pinta pithos pmount preload puddletag roxterm seamonkey-mozilla-build shutter smartmontools smplayer smtube swapspace vlc xsane
In order to make that list you have to look through your Menu and note the programs you installed. (Noting that not every program you installed will appear in your menu.)
Also, you can get a nice list of the installed programs with short descriptions (for reference), with the command:
Code:
dpkg -l | grep ii >> installed-programs.list
My method works for both scenarios.

However, if you are just doing scenario #1 (same version and same desktop) you can use this:
In the original OS, run the command:
Code:
dpkg --get-selections > installed-software.list
Then move that text file ( installed-software.list) to the new installation, and run the command:
Code:
sudo apt-get -y install $(cat installed-software.list | awk '{print $1}')
Don't try that with different versions or different desktops. You will be installing obsolete kernels and libraries that can completely bork your installation. With the same version and desktop, it works fine.

Last edited by TxLonghorn; 06-18-2017 at 09:59 AM.
 
Old 06-18-2017, 10:32 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,928
Blog Entries: 1

Rep: Reputation: 832Reputation: 832Reputation: 832Reputation: 832Reputation: 832Reputation: 832Reputation: 832
I'm more inclined to take this route, but the --get-selections route previously mentioned is probably the proper way.

# dpkg -l | awk '{ print $2; }' > temp_OLDINSTALL.txt

# nano temp_OLDINSTALL.txt
(remove headers --top 5 lines in my case--, remove unwanted packages, could use wc/head/tail and remove in the active distro before the previous too)

# cat temp_OLDINSTALL.txt | while read PACKAGE; do echo $PACKAGE; apt-get install $PACKAGE; done

Probably some --assume-yes and stuff to make it less "monitored" for apt-get, but should get it done. OFC this route includes everything, even the 85% of the packages installed by default on a fresh install. But generating the same list for the fresh install and removing the dupes might be more effort than it saves. Something that the --get-selections and --set-selections route probably already deals with.

In practice though I keep the dpkg -l list as a reference, and only do my minimum install. I install things as I use them. And use the list to remember the things I forgot. With the exception of the common things Like networking and system monitoring tools. Plus GPU, firmware, microcode, and other things needed to have a usable and perform-ant system by my standards. OFC this route fails a lot when upgrading to new releases as some package names have version numbers in them and do not have matching package names on the new release.
 
  


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
List installed programs CEB Linux - Software 7 09-14-2009 05:39 AM
install packages & check the list of installed programs/languages/applications shojaru Linux - Newbie 2 05-22-2009 02:36 AM
List installed programs introuble Debian 2 11-18-2006 05:30 AM
List installed Programs philthee Linux - General 8 10-07-2005 03:35 PM
How to get newly installed programs in programs list Brosky Linux - Software 5 02-06-2004 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:42 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration