Saturday, April 27, 2024
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 104898  / 1 Year ago, sat, may 27, 2023, 7:20:51

As you've probably noticed - I am a Ubuntu noob (I just got it yesterday.)



I have installed some programs through Terminal before, about 5-10 - so using Terminal doesn't scare me. But, I'm getting a new computer soon (yes, yes, I know I should've waited and did this on the new computer instead, but I was so excited! I'm sure you can relate ;A;) and I've heard it's hard and time consuming to move apps over to another hard disk, and it would be easier just to install them again. So, I will... but I don't really remember what I have installed and want an easy way to do this.



Is there any way to have a list of installed programs in Terminal or somewhere - and possibly even the apt-get commands to reinstall?


More From » command-line

 Answers
3

The magic keyword you are looking for is migration. You have the same question as someone who wants to move his current installation to a new computer.



Here is a quick explanation how to do it:
http://eggsonbread.com/2010/01/28/move-ubuntu-to-another-computer-in-3-simple-steps/



If you just want to get the list of currently installed programs, you just need the first command:



sudo dpkg --get-selections | sed "s/.*deinstall//" | sed "s/install$//g" > ~/pkglist


This will store your currently installed packages in the file ~/pkglist (~ stands for your home directory). You can open and review it with any text editor or in the terminal with



cat ~/pkglist

[#36683] Sunday, May 28, 2023, 12 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
onbean

Total Points: 29
Total Questions: 102
Total Answers: 115

Location: Benin
Member since Fri, Mar 24, 2023
1 Year ago
onbean questions
Fri, Mar 18, 22, 19:49, 2 Years ago
Tue, Dec 6, 22, 11:51, 1 Year ago
Mon, Jun 7, 21, 17:21, 3 Years ago
Mon, Jan 16, 23, 04:48, 1 Year ago
Mon, Oct 17, 22, 14:51, 2 Years ago
;