X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=docs%2F3_Developer_Guides%2F2_Building_Microservices_Natively%2F2_download-packages.md;fp=docs%2F3_Developer_Guides%2F2_Building_Microservices_Natively%2F2_download-packages.md;h=0000000000000000000000000000000000000000;hb=eefc3ab6cbb8a5901632f46d99e13c8d90b2415d;hp=c1502d257450e2a5949bd5661547a898cc1a56f9;hpb=4aad369c9728061c97b3de792286e743ee884b09;p=AGL%2Fdocumentation.git diff --git a/docs/3_Developer_Guides/2_Building_Microservices_Natively/2_download-packages.md b/docs/3_Developer_Guides/2_Building_Microservices_Natively/2_download-packages.md deleted file mode 100644 index c1502d2..0000000 --- a/docs/3_Developer_Guides/2_Building_Microservices_Natively/2_download-packages.md +++ /dev/null @@ -1,239 +0,0 @@ ---- -edit_link: '' -title: Download Packages -origin_url: >- - https://raw.githubusercontent.com/automotive-grade-linux/docs-sources/master/agl-documentation/host-configuration/docs/2-download-packages.md ---- - - - -# Download Packages - -Different repositories exist for different AGL releases.\ -You need to download and install the packages based on your version -of AGL. - -## Set the `REVISION` Environment Variable - -All the packages reside in repositories managed by the -[OpenSUSE Build Service (OBS)](https://build.opensuse.org/).\ -You can see the packages -[here](https://build.opensuse.org/project/subprojects/isv:LinuxAutomotive#). - -Currently, support exists for the following AGL releases: - -* ElectricEel -* FunkyFlounder -* GrumpyGuppy -* HappyHalibut -* Master - -You need to set the `REVISION` environment variable to the AGL release you -are using.\ -For this example, set and export `REVISION` as "Master". - -```bash -export REVISION=Master -``` - -For additional details about OBS, see -[LinuxAutomotive page on OBS](https://build.opensuse.org/project/show/isv:LinuxAutomotive). - -## Make Sure Your `DISTRO` Environment Variable is Set - -The `DISTRO` environment variable needs to be correctly set for your -Linux distribution.\ -See the -"[Verify Your Build Host](./1-verify-build-host.html)" -section for information on how to set this variable. - -## Install the Repository - -```bash -Hit:1 https://deb.nodesource.com/node_10.x xenial InRelease -Hit:2 https://download.docker.com/linux/ubuntu xenial InRelease -Hit:3 http://security.ubuntu.com/ubuntu xenial-security InRelease -Hit:4 http://us.archive.ubuntu.com/ubuntu xenial InRelease -Ign:5 http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/AGL_FunkyFlounder/xUbuntu_16.04 ./ InRelease -Hit:6 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease -Hit:7 http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/AGL_FunkyFlounder/xUbuntu_16.04 ./ Release -Hit:8 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease -Reading package lists... Done -``` - -Not sure why you get the `Ign` on line 5.\ -I guess InRelease does not exist. - -If you don't have a `/etc/apt/sources.list.d/AGL.list` file to even start with, -and you run through the whole thing, you get the following output: - -```bash -$ sudo apt-get update -Hit:1 https://deb.nodesource.com/node_10.x xenial InRelease -Hit:2 https://download.docker.com/linux/ubuntu xenial InRelease -Hit:3 http://us.archive.ubuntu.com/ubuntu xenial InRelease -Get:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB] -Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB] -Ign:6 http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/AGL_FunkyFlounder/xUbuntu_16.04 ./ InRelease -Hit:7 http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/AGL_FunkyFlounder/xUbuntu_16.04 ./ Release -Get:9 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] -Get:10 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [902 kB] -Fetched 1,225 kB in 1s (803 kB/s) -Reading package lists... Done -``` - -Following are example commands that show how to install the package repository -based on various values of `DISTRO` and `REVISION`: - -### Ubuntu and "Master" - -```bash -export REVISION=Master -export DISTRO="xUbuntu_18.04" -wget -O - http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/AGL_${REVISION}/${DISTRO}/Release.key | sudo apt-key add - -sudo bash -c "cat >> /etc/apt/sources.list.d/AGL.list <