0

I have linux mint on my laptop and I want to replace it by Ubuntu, and i do not want to install all my packages again so can i make backup for my installed packages and restore it on fresh ubuntu?

  • No AFAIK it won't go ! – George Udosen Apr 23 '17 at 12:25
  • 1
    I would not do this. What if any of the packages is Mint dependent? Redo your installation. – Rinzwind Apr 23 '17 at 18:03
1

You can use the following command to see packages installed by the user and output it to a file:

comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u) > ~/packages

Source


Then on your new install after bringing over that generated file, you can install them like so:

sudo apt-get install $(cat packages)

Why this approach is better

It allows apt to manage the dependencies for your platform like it is supposed to, and doesn't bring over system-installed libraries from Mint that Ubuntu will want to handle.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.