Hi everyone
Want to install a package in a computer but not connected to the internet. No worries, you can download packages wit dependencies and install them offline.
Step By step instructions
1) Find out what package you want to install.
First open the Synaptic package manager and search for the package you want to install. Here we are going to download Eclipse, and IDE for developers.
2) Work on the Linux OS which has an internet access.
Open the terminal and choose a suitable directory for download or create a new directory. Now we are going to create a new directory and move into it.
Code:
mkdir packages_dir
cd packages_dir
3) Installing the package
If you are working with a Debian system or any ubuntu system then you can use
Code:
sudo apt-get install Eclipse
If you are working with Fedora or Redhat based system you can use. You have to switch to the root user first.
Code:
yum install Eclipse
4) Coping the packages to your computer
After you have installed and the .deb files are located to /var/cache/apt/archives directory. Copy all the files from this directory to your directory.
Code:
sudo cp *.deb /var/cache/apt/archives
Or alternatively you can start nautilus as root and copy the files in the usual way.
5) Installing the packages
You have to open the terminal and type the following code
Code:
sudo apt-get install <package_name(s)>
Here package name is the name of the program you want to install.
This is it. You have successfully install the new application and ready to use.
Bookmarks