When we run the command in the terminal for downloading and installing a program on Ubuntu in the terminal window from which location does Ubuntu download the program?

For example I want to install Ithor on my computer I should run command:

$ sudo apt-get install lthor

I would like to know from where this package is downloaded and then installed.

And if possible can someone provide me the direct download link for Ithor as my internet connection is very slow and can't download it directly so need an offline installer.

  • 5
    Possible duplicate of What does apt-get install do under the hood? – muru Mar 7 '16 at 13:06
  • And askubuntu.com/questions/974/… – muru Mar 7 '16 at 13:07
  • And possibly askubuntu.com/q/599490/158442, depending on how you want to do it. – muru Mar 7 '16 at 13:08
  • You can download the file from another computer running using apt-get download Ithor and install it in your computer using dpkg – Mohit Rajan Mar 7 '16 at 13:12
  • Hello Mohit thanks for the prompt reply , it would be very kind if you can elaborate the dpkg thing , also i would like to download the Ithro package which i used for falshing mobile devices is there a direct download link for it if i am running windows – beastboy Mar 7 '16 at 13:15

It'll get the latest version of lthor available as defined by its package lists, as of the last time they were updated (eg apt-get update, amongst other commands).

You can see how the decision would go down with apt-cache policy. I don't have lthor in my repos so can't show you a specific example but here's another package that I don't have installed currently:

$ apt-cache policy xubuntu-desktop
  Installed: (none)
  Candidate: 2.202
  Version table:
     2.202 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

The Candidate version there is what would be installed. gb.archive.ubuntu.com is the repo it would be fetched from and verified against. Version 2.202 is the version it would fetch.

This table is much more exciting when you have multiple repositories providing the same thing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.