By recording installed .deb packages in to a text file, they can easily be transferred and used on another computer to install the same packages. This functionality is especially useful for installing the identical packages on multiple computers. Unfortunately, it is only available on an Ubuntu and Debian system.
Recording Installed .deb Packages
There are two methods that can be used to record these installed .deb packages into a text file: the .deb packages
When using either method, it is important to ensure that the /etc/apt/sources.list file is identical in both computers. A USB flash drive will also be needed to transfer the packages. Follow the steps below to learn how to use these two methods.
Method #1: Use The Desktop Method with the Synaptic Package Manager
This is the easier of the two methods, and involves creating the package file using the Synaptic Package Manager. Here's how:
- Click on the System button located at the top of the screen. Select Administration from the menu that appears. Select the Synaptic Package Manager in the window that opens.
- Click on File and then click on Save Markings As…
- Now, type in a name for the file, for example a name like deb_packages.txt.
- Check the option: Save full state, not only changes. If this is not done, only the changes that have made in the current Synaptic session will be saved.
- Insert the USB flash drive into the PC. Save the file to the USB drive.
Now, all that needs to be done is to insert the USB drive into another computer and open Synaptic. Go to File and then Read Markings… After doing this, some of the packages will be marked. These are the packages that were installed on the first computer. Click Apply to start the installation.
Method #2: Record .deb Packages Using the Command Line
Normal
0
- This can be done by clicking the Applications button, located near the of the screen.
- Accessories and then click Terminem> in the drop down menu that wopen.
- s open, type in the following command: sudo dpkg --get-selections "*" > /media/disk/deb_packages.txt
- B drive and open the terminal and then run the following command:sudo dpkg --set-selections < /media/disk/deb_packages.txtsudo apt-get -u dselect-upgrade.
- s run, the package installation will begin.
Normal
0
With little more than a USB drive, .deb packages can easily be transferred and used on multiple computers in just a few steps.
Join the Conversation