how to take backup of installed packages

Asked by ranjith

i need to take backup of all installed packages, pls let me know how to do this

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Aptoncd can make a backup of each package you have installed. This can then be transferred to a new system. You can also use:

To replicate your packages selection on another machine (or restore it if re-installing), you can type

aptitude --display-format '%p' search '?installed!?automatic' > ~/my-packages

move the file "my-packages" to the other machine, and there type:

sudo xargs aptitude --schedule-only install < my-packages ; sudo aptitude install

Done

Can you help with this problem?

Provide an answer of your own, or ask ranjith for more information if necessary.

To post a message you must log in.