LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   download ubuntu softwares manually (http://www.linuxquestions.org/questions/linux-networking-3/download-ubuntu-softwares-manually-590723/)

glacy_gla 10-10-2007 02:42 AM

download ubuntu softwares manually
 
I only use my mobile phone as modem for my internet connection, I cant update my softwares for ubuntu 7.04, is there anyway I can download it manually? I can only download large files in my workplace.

b0uncer 10-10-2007 03:50 AM

Yes, you could download all the needed .deb files and install them with dpkg. It's the same apt does, but apt resolves dependencies, and automatically downloads all needed files for you; if you do it manually, you're the one who has to make sure all the dependencies are downloaded. You could probably (if apt just supports it) ask apt to do a "fake" upgrade process, meaning that it would show what should be downloaded but wouldn't then do it. Sort of gave you a list of things to be downloaded. Then you could use that list as your "guide" when downloading them manually (they're on the Ubuntu reposities anyway, though it's not quite as easy getting them without apt doing it for you).

When you've downloaded the packages (put them into the same dir for easiness),
Code:

dpkg -i packagename.deb
for each package, or probably just
Code:

dpkg -i *.deb
in the directory.

EDIT: you could probably also do
Code:

dpkg -Ri /path/to/package/directory/
to have dpkg install (upgrade, if already installed) all the packages in /path/to/package/directory/ recursively; -R means "recursive", and with it you give dpkg the directory path under which all the packages to be installed are, rather than package names.

glacy_gla 10-10-2007 08:53 AM

Quote:

Originally Posted by b0uncer (Post 2919383)
Yes, you could download all the needed .deb files and install them with dpkg. It's the same apt does, but apt resolves dependencies, and automatically downloads all needed files for you; if you do it manually, you're the one who has to make sure all the dependencies are downloaded. You could probably (if apt just supports it) ask apt to do a "fake" upgrade process, meaning that it would show what should be downloaded but wouldn't then do it. Sort of gave you a list of things to be downloaded. Then you could use that list as your "guide" when downloading them manually (they're on the Ubuntu reposities anyway, though it's not quite as easy getting them without apt doing it for you).

When you've downloaded the packages (put them into the same dir for easiness),
Code:

dpkg -i packagename.deb
for each package, or probably just
Code:

dpkg -i *.deb
in the directory.

EDIT: you could probably also do
Code:

dpkg -Ri /path/to/package/directory/
to have dpkg install (upgrade, if already installed) all the packages in /path/to/package/directory/ recursively; -R means "recursive", and with it you give dpkg the directory path under which all the packages to be installed are, rather than package names.

so in linux installing softwares are different, i thought its the same with windows way of double click after download.anyway its like going back to the basics of computing.what's dpkg? never mind i'll just read the threads how to do it. Thank you.


All times are GMT -5. The time now is 01:43 PM.