download and install softwares from repos when offline

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

download and install softwares from repos when offline

Postby ganeshanair on Sun Aug 05, 2012 7:11 am

hello everyone i was wondering if there was a way to get apt url links for .deb software files which are in software mangaer becouse right now i dont have have a net so i need to get deb files from an another pc and copy them to the archives i belive there is a terminal code to do that but i dont know ,and also get the dependencies needed for that deb file too.. so plz could anyone help me
ganeshanair
Level 1
Level 1
 
Posts: 28
Joined: Sun Jun 03, 2012 11:01 am

Linux Mint is funded by ads and donations.
 

Re: download and install softwares from repos when offline

Postby grizzler on Sun Aug 05, 2012 12:42 pm

Sorry, but I can't quite figure out what you're asking. What exactly do you mean by 'copy them to the archives'?
What do you want to do? Download package files on another pc without installing them there and then copy them over? Or install them on that other pc first and then retrieve them from the cache?

You can install packages that were downloaded or copied to a particular directory by opening that directory in a terminal window and entering sudo dpkg -i * , but you would have to make sure all dependencies were available (either installed already or as packages in the same directory).
Another option would be GDebi, but as far as I know that needs an internet connection to pick up dependencies.
grizzler
Level 4
Level 4
 
Posts: 440
Joined: Wed Jun 15, 2011 5:19 pm
Location: The Hague, NL

Re: download and install softwares from repos when offline

Postby ganeshanair on Sun Aug 05, 2012 2:36 pm

i belive u misunderstood forget about archives ,i ment the archies which are in the var folder if u use sudo to copy them to there u cant apt-get install to install them with out using internet anyway forget about that what i want to know is imagine there is a software i want in my pc which is in my software manager but dont have a net ,is there anyway to fetch the url of the deb files and the dependency so that i can go in an another computer and downlaod them then copy to my pc and install them by using gdeb,i heard my bro say there is a terminal code to get the url and dependency's url but he said he no longer remeber becouse he stoped using linux a long while ago
ganeshanair
Level 1
Level 1
 
Posts: 28
Joined: Sun Jun 03, 2012 11:01 am

Re: download and install softwares from repos when offline

Postby grizzler on Sun Aug 05, 2012 5:44 pm

You may not be able to use apt-get without internet, but as I mentioned in my previous posting, you can install packages without internet access if you use dpkg.

Anyway, you can use apt-cache depends package (where package is the name of the package) to find out a package's dependencies. I'm not aware of any terminal command that also produces a full url, but I wouldn't be surprised if there was one, because that information could be gathered from the sources.list and the files in /var/lib/apt/lists (the files with names ending in _Packages).
Unless someone else comes up with the name of the command you're after, you could use apt-cache show package for each item to get the contents of the Filename keyword and append that to the url of the repository to retrieve the file.

E.g. if you wanted the Bless hex editor, the Filename would be pool/main/b/bless/bless_0.6.0-4_all.deb. The url of the main Debian repository is http://ftp.debian.org/debian/ so you could browse to http://ftp.debian.org/debian/pool/main/b/bless/ and download the right deb file.

Packages can also be searched on http://www.debian.org/distrib/packages (the "normal" Debian packages, anyway). Those pages should also tell you about any dependencies and provide links to them.

Edit: Just out of curiosity I googled "find package url Debian". Found this: http://linuxers.org/article/find-downlo ... ng-apt-get
grizzler
Level 4
Level 4
 
Posts: 440
Joined: Wed Jun 15, 2011 5:19 pm
Location: The Hague, NL

Re: download and install softwares from repos when offline

Postby Habitual on Sun Aug 05, 2012 6:36 pm

ganeshanair wrote:...a way to get apt url links for .deb software files which are in software mangaer becouse right now i dont have have a net ...


The subject is called "Offline Repos, or Repositories".
What's a landing but a take off in reverse?
User avatar
Habitual
Level 8
Level 8
 
Posts: 2217
Joined: Sun Nov 21, 2010 8:31 pm
Location: LM17Q-Xfce

Re: download and install softwares from repos when offline

Postby titetanium on Sun Aug 05, 2012 11:11 pm

Perhaps the OP meant this? Or if he has any .iso's to work with, this would do.
titetanium
Level 2
Level 2
 
Posts: 71
Joined: Mon Jun 18, 2012 4:26 pm

Re: download and install softwares from repos when offline

Postby grizzler on Mon Aug 06, 2012 2:40 am

titetanium wrote:Perhaps the OP meant this?

That's what I thought initially. I've actually used such a setup myself when a cousin of mine with a slow internet connection needed a large update. Worked like a charm.
But on second thought I figured the OP was looking for something else and his second posting seemed to confirm that.
grizzler
Level 4
Level 4
 
Posts: 440
Joined: Wed Jun 15, 2011 5:19 pm
Location: The Hague, NL

Re: download and install softwares from repos when offline

Postby titetanium on Tue Aug 07, 2012 3:15 am

Is this what he was talking about? http://community.linuxmint.com/software/browse
titetanium
Level 2
Level 2
 
Posts: 71
Joined: Mon Jun 18, 2012 4:26 pm

Re: download and install softwares from repos when offline

Postby pradhishkumaAR on Wed Aug 15, 2012 9:28 pm

i think your best bet would be to use a similar install in another computer in the sense u have to have another linux mint install in another comp. Make sure that both systems are in same level of updates. Then install any software you want in the internet pc. Then copy all the deb files from var cahce apt and move it to the non internet pc. Then execute dpkg -i *.*. This should do the trick. Good luck trying.
pradhishkumaAR
Level 1
Level 1
 
Posts: 39
Joined: Mon Sep 10, 2007 10:51 am

Re: download and install softwares from repos when offline

Postby ganeshanair on Tue Aug 21, 2012 12:08 pm

thats what i do for now but theirs a problem me and my bro has same pc and kept right upto date but how do i know what dependencys to copy the software like texmaker for instance has like 30 to 35 dependencys when looked through console how can i know wether if some already installed and some not? becouse else i got to sit and find all them from the list and let me tell u my archive is very big ,i seem to see all dependencys with brackets and something inside some say (null) i think inside does that mean it already installed because i really need a solution to pic the right once to copy
ganeshanair
Level 1
Level 1
 
Posts: 28
Joined: Sun Jun 03, 2012 11:01 am

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Google Feedfetcher and 5 guests