LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to install downloaded packages in offline mode in Ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-downloaded-packages-in-offline-mode-in-ubuntu-905725/)

peeyushsharma 09-30-2011 12:12 AM

How to install downloaded packages in offline mode in Ubuntu
 
Hi,

I have a machine which does not have internet connect.
I have downloaded some packages on my friend's machine and copied those packages from /var/cache/apt/archieves

Now I want to install those packages on my machine.
what approach should I follow to install those packages, kindly suggest

Thanks & Regards
Peeyush Sharma

corp769 09-30-2011 12:21 AM

Hello,

If you are talking about the .deb package files, which they should be, you would use the following to install them:
Code:

sudo dpkg -i package_file.deb
To uninstall a deb file, use the following:
Code:

sudo dpkg -r package_name
I also recommend that you read up on the man page for dpkg. (man dpkg)

Cheers,

Josh

peeyushsharma 09-30-2011 12:30 AM

Actually I have around 250 packages which I need to install and a lot of them are dependent on each other and the dependency tree is getting bigger and bigger.
I want to know is there any way like I can put those packages under one folder and Synaptic package manager may fetch them up automatically and install the dependecies likewise.

Thanks & Regards

Peeyush Sharma


All times are GMT -5. The time now is 07:59 PM.