record of programs installed

ReginaBob

New Member
I cant remember where I saw this;I am building a new tower (as soon as the rest of the parts get here).I want to install all of the same programs on the new machine.I am going to use Ubuntu 18.04 again.I saw a quick way to do this,but can't remember where.I guess I can always write them down on paper;I think I remember how to do that...
 


Alexzee

Member
I'm thinking for the os you can use Clonezilla.

The only 2 tools that I know of is the command line utility APT, the Software Manager <or> Synaptic.
 

ReginaBob

New Member
Wasn't planning to clone.Just want to do a clean install,and reinstall all the same programs,all from Ubuntu software.There always seems to be something I forget until I need it and its not there.It doesn't help that I don't always remember the names of the programs.Just read in another post about UEFI vs legacy.I assumed I would have to use legacy on my new build.Does Ubuntu 18.04 support UEFI?It will be Ubuntu only on a 1TB SSD(went for it),no other internal drives,and I"m going to try using on-board video and audio to keep it simple and cool running.
 
Last edited:

poorguy

Well-Known Member
I cant remember where I saw this;I am building a new tower (as soon as the rest of the parts get here).I want to install all of the same programs on the new machine.I am going to use Ubuntu 18.04 again.I saw a quick way to do this,but can't remember where.I guess I can always write them down on paper;I think I remember how to do that...
There are 9 white dots lower left hand corner open that and i believe you will find everything you have installed and then some.
 

atanere

Well-Known Member
You might try opening a terminal and giving this command:
Code:
ls /usr/share/applications

Then scroll back through the output to see if it includes everything you think you need. This is relatively a "short list" but may contain what you installed manually. If you want to save the output to a file, use:
Code:
ls /usr/share/appliations > /home/YOUR-USER-NAME/Desktop/apps.txt

If you want a "long list" of all installed packages (probably a couple of thousand!)... try this:
Code:
sudo dpkg -l
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
G'day @ReginaBob , g'day all. :)

For programs I manually installed from Terminal, I usually use

Code:
sudo apt-get install package-name

#or (the -y simply means I trust the package and say yes to changes)

sudo apt-get y install package-name
So in my Debian (same applies to Ubuntu and Linux Mint), these two iterations of commands pulling output from a history log file reveal as follows

Code:
[email protected]:~$ cat /var/log/apt/history.log | grep -i "apt-get install"
Commandline: apt-get install gdebi
Commandline: apt-get install software-properties-common
Commandline: apt-get install multisystem

[email protected]:~$ cat /var/log/apt/history.log | grep -i "apt-get -y install"
Commandline: apt-get -y install aisleriot
Commandline: apt-get -y install thunderbird
Commandline: apt-get -y install xinput
Commandline: apt-get -y install gparted
Commandline: apt-get -y install mate-tweak
Commandline: apt-get -y install kazam gtkhash
Commandline: apt-get -y install ssh
Commandline: apt-get -y install ufw
Commandline: apt-get -y install inxi
Commandline: apt-get -y install smartmontools
[email protected]:~$
You could string those together in one command, I am lazy but @JasKinasis could tell us (and likely a better way :)) - so 13 commands, with 14 packages (kazam and gtkhash together) which I have put on the Debian since install.

My user name is chris and I can also do

Code:
[email protected]:~$ cat /var/log/apt/history.log | grep -i "Requested-By: chris (1000)"
Requested-By: chris (1000)
Requested-By: chris (1000)
Requested-By: chris (1000)
Requested-By: chris (1000)
Requested-By: chris (1000)
Requested-By: chris (1000)
Requested-By: chris (1000)
Requested-By: chris (1000)
Requested-By: chris (1000)
Requested-By: chris (1000)
Requested-By: chris (1000)
Requested-By: chris (1000)
Requested-By: chris (1000)
[email protected]:~$
and this also show me 13 uses of the commands (but does not show the 14th included in the pair).

Once you have the size and scope of the job, you could then use a string to search the log file manually if you wished.

For packages installed through your Synaptic Package Manager, you can open it and choose from the Menu:

File - History , and then expand on the dates, here we see I put on firefox-esr



HTH

Chris Turner
wizardfromoz
 

Members online


Top