mancity
Posts: 58
Joined: Tue Dec 23, 2014 8:18 pm

Where do installs come from?

Tue Jan 06, 2015 1:34 pm

Hi guys,

When I do a sudo apt-get whatever, where does the download come from?

Is it a Raspberry Pi repository somewhere?

User avatar
r3d4
Posts: 982
Joined: Sat Jul 30, 2011 8:21 am
Location: ./

Re: Where do installs come from?

Tue Jan 06, 2015 2:02 pm

Last edited by r3d4 on Mon Jan 12, 2015 2:33 pm, edited 1 time in total.
Real life is, to most, a long second-best, a perpetual compromise between the ideal and the possible.
-
Meanwhile, the sysadmin who accidentally nuked the data reckons "its best not run anything more with sudo today"
-
what about spike milligan?

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Where do installs come from?

Tue Jan 06, 2015 2:21 pm

If you are interested , this how a repository looks like :
http://archive.raspbian.org/raspbian/

You propably want to use apt and and friends instead.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

mancity
Posts: 58
Joined: Tue Dec 23, 2014 8:18 pm

Re: Where do installs come from?

Tue Jan 06, 2015 2:50 pm

Thanks alot ill have a good look at this :)

User avatar
rpdom
Posts: 17029
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Where do installs come from?

Tue Jan 06, 2015 6:40 pm

You can look at the actual web addresses of the files that will be downloaded by adding the --print-uris option (That's with two "-"s at the front).

It doesn't need sudo, and it looks like it is going to install the software, but all it does is list the files that would have been downloaded, like this.

Code: Select all

pi@raspi3 ~ $ apt-get --print-uris install apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  apache2-bin apache2-data apache2-utils libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0
Suggested packages:
  apache2-doc apache2-suexec-pristine apache2-suexec-custom
Recommended packages:
  ssl-cert
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,725 kB of archives.
After this operation, 5,130 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
'http://mirrordirector.raspbian.org/raspbian/pool/main/a/apr/libapr1_1.5.1-3_armhf.deb' libapr1_1.5.1-3_armhf.deb 77106 MD5Sum:519327faf8af869971b574064f8b5db1
'http://mirrordirector.raspbian.org/raspbian/pool/main/a/apr-util/libaprutil1_1.5.4-1_armhf.deb' libaprutil1_1.5.4-1_armhf.deb 75874 MD5Sum:8487c9066806e0426905e32ec76b0307
'http://mirrordirector.raspbian.org/raspbian/pool/main/a/apr-util/libaprutil1-dbd-sqlite3_1.5.4-1_armhf.deb' libaprutil1-dbd-sqlite3_1.5.4-1_armhf.deb 17698 MD5Sum:9ca9886fe4e5ab51e87d190ec583d65a
'http://mirrordirector.raspbian.org/raspbian/pool/main/a/apr-util/libaprutil1-ldap_1.5.4-1_armhf.deb' libaprutil1-ldap_1.5.4-1_armhf.deb 16744 MD5Sum:96a9bd1d5dccc8452f37ed7c56d0f3cc
'http://mirrordirector.raspbian.org/raspbian/pool/main/l/lua5.1/liblua5.1-0_5.1.5-7.1_armhf.deb' liblua5.1-0_5.1.5-7.1_armhf.deb 83670 MD5Sum:964c6b39fbe7ab6b049e4d2a3be368b4
'http://mirrordirector.raspbian.org/raspbian/pool/main/a/apache2/apache2-bin_2.4.10-9_armhf.deb' apache2-bin_2.4.10-9_armhf.deb 893154 MD5Sum:0bdc04fc46ade6da32b7a10dbb18950c
'http://mirrordirector.raspbian.org/raspbian/pool/main/a/apache2/apache2-utils_2.4.10-9_armhf.deb' apache2-utils_2.4.10-9_armhf.deb 193694 MD5Sum:72f72a7f610719ea5a5185f41979f8bd
'http://mirrordirector.raspbian.org/raspbian/pool/main/a/apache2/apache2-data_2.4.10-9_all.deb' apache2-data_2.4.10-9_all.deb 162580 MD5Sum:a9bf64c9fd7a78009229b5b60300af15
'http://mirrordirector.raspbian.org/raspbian/pool/main/a/apache2/apache2_2.4.10-9_armhf.deb' apache2_2.4.10-9_armhf.deb 204604 MD5Sum:6ff0b7e750d52ced103ae7039943ba18
pi@raspi3 ~ $ 
(I'm running Jessie, not Wheezy, on that Pi, so your files may differ).
The lines contain:
The source file name to fetch from.
The file name to save it as.
The size of the download in bytes.
A checksum to make sure the file downloaded correctly.

mancity
Posts: 58
Joined: Tue Dec 23, 2014 8:18 pm

Re: Where do installs come from?

Tue Jan 06, 2015 8:45 pm

Thanks alot for the info guys :D

Return to “Beginners”