How to install all my Ubuntu packages (including PPAs) on another Ubuntu

Many of us have 2 or more compus and we generally install the same programs and PPAs in all of them. The question is: Will it be possible to install everything on 1 machine and then automate the installation on the others? If possible. 🙂

Steps to follow

1.- Download the script "magical".

2.- Unzip and run the file packagebkp.

sudo ./packagebkp
Note: in the process they will be installed aptitude and some other extra packages.

3.- At the end of the process, an output.tar.gz file will be created. Copy it to the second machine (the one where you want to automate the package installation process), unzip it and, finally, run the file install-all-packages.sh.

sudo ./install-all-packages.sh
Note: Be careful! this script works fine only in the case that all the compus have the same Ubuntu installed. In case that one computer has Ubuntu 10.10 and another Ubuntu 9.10, for example, this trick will not work well because it will copy incompatible repositories with each other.
Thank you Ramiro Rivera for suggesting the topic!

6 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Ramiro Rivera placeholder image said

    Just what I had asked you a while ago

    Thank you very much !!!

  2.   Let's use Linux said

    You are right! I knew someone had asked me but I couldn't remember who. 🙂
    Right now I add you in the post. 🙂
    Cheers! Paul.

  3.   Miquel Mayol i Tur said

    One question, if you change from amd64 to Intel, how can you do it? Is this worth it?

  4.   Let's use Linux said

    No, I don't think so. 🙁

  5.   diablindows said

    I must have internet on both machines or it doesn't matter if I have a pc at my work and I have ubuntu but I want to update the packages on my computer where I don't have internet, will this help me?

  6.   Let's use Linux said

    In both you must have internet. However, to do what you want, I recommend you read this other post: http://usemoslinux.blogspot.com/2010/08/como-instalar-paquetes-sin-tener-una.html
    Cheers! Paul.