Changes

Jump to navigation Jump to search
882 bytes added ,  11:28, 25 January 2016
no edit summary
Line 1: Line 1:  +
==Offline installation of packages==
 +
 +
When one installs any package to Ubuntu, the *.deb files downloaded will be saved in <code>/var/cache/apt/archives</code> directory. So if the same packages needs to be installed on other machines with same Ubuntu distribution version, the downloaded *.deb files can be used. Please follow below procedure to do that:
 +
 +
# Copy the files from <code>/var/cache/apt/archives</code> directory to any external drive.
 +
# Copy these files from external drive to the Desktop.
 +
# Use below commands to copy files from Desktop to <code>/var/cache/apt/archives</code> directory:
 +
            sudo -s
 +
            cp ~/Desktop/*.deb /var/cache/apt/archives
 +
            sudo apt-get install <code>package_name</code>
 +
 +
Note: Unless you have updated repos on the target machine, you may have to run <code>sudo apt-get update</code> which will require Internet.
 +
 +
 +
 
==List of Commands==
 
==List of Commands==
 
===Top===
 
===Top===
1,823

edits

Navigation menu