How does apt-get work, in detail?apt-get has unmet dependencies, but apt-get -f install doesn't solve problemApt-Get Install Unmet DependenciesIs it possible to have a Debian package pre-install script run apt-get commands?Create a subset of debian repoInstall .deb file from git repo on apt-get installIs it safe to manually perform 'apt-get update' 's operation?mysql-server-5.5 unmet dependencies each time running apt-getdpkg install with apt-get autoremoveapt-get Failing for all packagesHow does apt-get really work?

Pattern matching repeated arguments of Times

Modern approach to radio buttons

How do Russian speakers idiomatically express the idea of "Ce n’est pas donné à tout le monde de ..." in French?

Yandex Programming Contest: Alarms

Why doesn't the Earth's acceleration towards the Moon accumulate to push the Earth off its orbit?

How is character development a major role in the plot of a story

Windows 10 Programs start without visual Interface

Why does the UK have more political parties than the US?

Draw a checker pattern with a black X in the center

A Mathematical Discussion: Fill in the Blank

What does "Marchentalender" on the front of a postcard mean?

Terminology about G- simplicial complexes

Leading and Suffering Numbers

What's the connection between "kicking a pigeon" and "how a bill becomes a law"?

If a massive object like Jupiter flew past the Earth how close would it need to come to pull people off of the surface?

1960s sci-fi novella with a character who is treated as invisible by being ignored

Is it possible to change original filename of an exe?

Can a Beholder use rays in melee range?

Is there an explanation for Austria's Freedom Party virtually retaining its vote share despite recent scandal?

Why do they consider the Ori false gods?

Is there any use case for the bottom type as a function parameter type?

Canon 70D often overexposing or underexposing shots

Could I be denied entry into Ireland due to medical and police situations during a previous UK visit?

How do you deal with an abrupt change in personality for a protagonist?



How does apt-get work, in detail?


apt-get has unmet dependencies, but apt-get -f install doesn't solve problemApt-Get Install Unmet DependenciesIs it possible to have a Debian package pre-install script run apt-get commands?Create a subset of debian repoInstall .deb file from git repo on apt-get installIs it safe to manually perform 'apt-get update' 's operation?mysql-server-5.5 unmet dependencies each time running apt-getdpkg install with apt-get autoremoveapt-get Failing for all packagesHow does apt-get really work?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















I'm currently working with Ubuntu and trying to install a Debian system on a VM, which means I have to deal with packages. Since I'm new to it, I've read a lot about it on the web and especially debian wiki (ubuntu wiki is useful too). In particular, I have learn how to make a local repository and how to properly edit the sources.list file.



However, I still have some questions about how it works, details I couldn't find on the web.



  • First, when you use an online repository. I understood that apt-get will follow the link you wrote in the source.list file and search for a Packages.gz archive. What i don't understand is how this simple archive (which seem to be only a list of installable packages) allow the installation of the package? Does Packages.gz gives apt information about how to find the .deb file and then proceed the installation? Or is it something else?


  • Second, about the Sources.gz archive. I've read it's the source code of the packages listed in Packages.gz, BUT in most cases it's not needed. So, if i add the link to this Sources.gz in my source.list file, what does it really gives to me? What's the point of it?


  • Third, about local repository; this is related to the previous questions. I know how to make a local repository with .deb files, but let's say i only have this Packages.gz archive: it won't be enough, rigth? and if i have the Sources.gz archive, will it work?


  • Finally, i've seen on Debian repository that, in addition to the dist repository, there is a pool repository with a lot of .deb in it. I know a way to install those (download the .deb and its dependencies, install them with dpkg -i), but is there an easier way? Something more automatic, which could find the .deb online, find its dependencies, and install everything ? (just like apt-get do, but as far as i've understood it, apt-get only works with the Packages.gz and Sources.gz archives, not directly with .deb)


I'm sorry this is not really a question, rather a list of questions ^^ but everything I found online was mostly "apt-get search for the package and its dependency in the online repository and install it through dpkg", and I would like more details about it.









share









New contributor



Ablia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Please, take the time to read this and edit the question afterwards.

    – Panki
    10 hours ago











  • done it (hopefully good enough :/ )

    – Ablia
    9 hours ago











  • Yes, good work, thanks a lot! It is now much easier to understand and answer your question.

    – Panki
    9 hours ago











  • If you want to set up your own APT repository, don't maintain those index files by hand. Use one of the dozen repository generation tools.

    – 200_success
    1 hour ago

















4















I'm currently working with Ubuntu and trying to install a Debian system on a VM, which means I have to deal with packages. Since I'm new to it, I've read a lot about it on the web and especially debian wiki (ubuntu wiki is useful too). In particular, I have learn how to make a local repository and how to properly edit the sources.list file.



However, I still have some questions about how it works, details I couldn't find on the web.



  • First, when you use an online repository. I understood that apt-get will follow the link you wrote in the source.list file and search for a Packages.gz archive. What i don't understand is how this simple archive (which seem to be only a list of installable packages) allow the installation of the package? Does Packages.gz gives apt information about how to find the .deb file and then proceed the installation? Or is it something else?


  • Second, about the Sources.gz archive. I've read it's the source code of the packages listed in Packages.gz, BUT in most cases it's not needed. So, if i add the link to this Sources.gz in my source.list file, what does it really gives to me? What's the point of it?


  • Third, about local repository; this is related to the previous questions. I know how to make a local repository with .deb files, but let's say i only have this Packages.gz archive: it won't be enough, rigth? and if i have the Sources.gz archive, will it work?


  • Finally, i've seen on Debian repository that, in addition to the dist repository, there is a pool repository with a lot of .deb in it. I know a way to install those (download the .deb and its dependencies, install them with dpkg -i), but is there an easier way? Something more automatic, which could find the .deb online, find its dependencies, and install everything ? (just like apt-get do, but as far as i've understood it, apt-get only works with the Packages.gz and Sources.gz archives, not directly with .deb)


I'm sorry this is not really a question, rather a list of questions ^^ but everything I found online was mostly "apt-get search for the package and its dependency in the online repository and install it through dpkg", and I would like more details about it.









share









New contributor



Ablia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Please, take the time to read this and edit the question afterwards.

    – Panki
    10 hours ago











  • done it (hopefully good enough :/ )

    – Ablia
    9 hours ago











  • Yes, good work, thanks a lot! It is now much easier to understand and answer your question.

    – Panki
    9 hours ago











  • If you want to set up your own APT repository, don't maintain those index files by hand. Use one of the dozen repository generation tools.

    – 200_success
    1 hour ago













4












4








4








I'm currently working with Ubuntu and trying to install a Debian system on a VM, which means I have to deal with packages. Since I'm new to it, I've read a lot about it on the web and especially debian wiki (ubuntu wiki is useful too). In particular, I have learn how to make a local repository and how to properly edit the sources.list file.



However, I still have some questions about how it works, details I couldn't find on the web.



  • First, when you use an online repository. I understood that apt-get will follow the link you wrote in the source.list file and search for a Packages.gz archive. What i don't understand is how this simple archive (which seem to be only a list of installable packages) allow the installation of the package? Does Packages.gz gives apt information about how to find the .deb file and then proceed the installation? Or is it something else?


  • Second, about the Sources.gz archive. I've read it's the source code of the packages listed in Packages.gz, BUT in most cases it's not needed. So, if i add the link to this Sources.gz in my source.list file, what does it really gives to me? What's the point of it?


  • Third, about local repository; this is related to the previous questions. I know how to make a local repository with .deb files, but let's say i only have this Packages.gz archive: it won't be enough, rigth? and if i have the Sources.gz archive, will it work?


  • Finally, i've seen on Debian repository that, in addition to the dist repository, there is a pool repository with a lot of .deb in it. I know a way to install those (download the .deb and its dependencies, install them with dpkg -i), but is there an easier way? Something more automatic, which could find the .deb online, find its dependencies, and install everything ? (just like apt-get do, but as far as i've understood it, apt-get only works with the Packages.gz and Sources.gz archives, not directly with .deb)


I'm sorry this is not really a question, rather a list of questions ^^ but everything I found online was mostly "apt-get search for the package and its dependency in the online repository and install it through dpkg", and I would like more details about it.









share









New contributor



Ablia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I'm currently working with Ubuntu and trying to install a Debian system on a VM, which means I have to deal with packages. Since I'm new to it, I've read a lot about it on the web and especially debian wiki (ubuntu wiki is useful too). In particular, I have learn how to make a local repository and how to properly edit the sources.list file.



However, I still have some questions about how it works, details I couldn't find on the web.



  • First, when you use an online repository. I understood that apt-get will follow the link you wrote in the source.list file and search for a Packages.gz archive. What i don't understand is how this simple archive (which seem to be only a list of installable packages) allow the installation of the package? Does Packages.gz gives apt information about how to find the .deb file and then proceed the installation? Or is it something else?


  • Second, about the Sources.gz archive. I've read it's the source code of the packages listed in Packages.gz, BUT in most cases it's not needed. So, if i add the link to this Sources.gz in my source.list file, what does it really gives to me? What's the point of it?


  • Third, about local repository; this is related to the previous questions. I know how to make a local repository with .deb files, but let's say i only have this Packages.gz archive: it won't be enough, rigth? and if i have the Sources.gz archive, will it work?


  • Finally, i've seen on Debian repository that, in addition to the dist repository, there is a pool repository with a lot of .deb in it. I know a way to install those (download the .deb and its dependencies, install them with dpkg -i), but is there an easier way? Something more automatic, which could find the .deb online, find its dependencies, and install everything ? (just like apt-get do, but as far as i've understood it, apt-get only works with the Packages.gz and Sources.gz archives, not directly with .deb)


I'm sorry this is not really a question, rather a list of questions ^^ but everything I found online was mostly "apt-get search for the package and its dependency in the online repository and install it through dpkg", and I would like more details about it.







apt software-installation package-management





share









New contributor



Ablia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share









New contributor



Ablia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







share



share








edited 1 hour ago









200_success

4,00511729




4,00511729






New contributor



Ablia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 10 hours ago









AbliaAblia

263




263




New contributor



Ablia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




Ablia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • Please, take the time to read this and edit the question afterwards.

    – Panki
    10 hours ago











  • done it (hopefully good enough :/ )

    – Ablia
    9 hours ago











  • Yes, good work, thanks a lot! It is now much easier to understand and answer your question.

    – Panki
    9 hours ago











  • If you want to set up your own APT repository, don't maintain those index files by hand. Use one of the dozen repository generation tools.

    – 200_success
    1 hour ago

















  • Please, take the time to read this and edit the question afterwards.

    – Panki
    10 hours ago











  • done it (hopefully good enough :/ )

    – Ablia
    9 hours ago











  • Yes, good work, thanks a lot! It is now much easier to understand and answer your question.

    – Panki
    9 hours ago











  • If you want to set up your own APT repository, don't maintain those index files by hand. Use one of the dozen repository generation tools.

    – 200_success
    1 hour ago
















Please, take the time to read this and edit the question afterwards.

– Panki
10 hours ago





Please, take the time to read this and edit the question afterwards.

– Panki
10 hours ago













done it (hopefully good enough :/ )

– Ablia
9 hours ago





done it (hopefully good enough :/ )

– Ablia
9 hours ago













Yes, good work, thanks a lot! It is now much easier to understand and answer your question.

– Panki
9 hours ago





Yes, good work, thanks a lot! It is now much easier to understand and answer your question.

– Panki
9 hours ago













If you want to set up your own APT repository, don't maintain those index files by hand. Use one of the dozen repository generation tools.

– 200_success
1 hour ago





If you want to set up your own APT repository, don't maintain those index files by hand. Use one of the dozen repository generation tools.

– 200_success
1 hour ago










1 Answer
1






active

oldest

votes


















5














  1. The Packages.gz contains a Filename field with a value that probably looks something like pool/main/n/name-of-package/name-of-package_version_amd64.deb. This tells the package manager to look at that URL.

    For instance, if you have the following line in your sources.list(.d):
    deb https://some-domain.com/some-url some-distribution main

    You will have the following file: https://some-domain.com/some-url/dists/some-distribution/main/binary-amd64/Packages.gz

    That file will reference pool/main/n/name-of-package/name-of-package_version_amd64.deb, so your package manager will look at https://some-domain.com/some-url/pool/main/n/name-of-package/name-of-package_version_amd64.deb.


  2. Sources.gz works the same way, but is optional. It works with apt source, which will fetch you the source if you wish to compile it yourself instead of using the pre-built binaries.

    This is mainly useful for system administrators who want to patch the exact version of the package used by a distribution, rather than contributors/curious people who would just go to the project's homepage and follow the build instructions there.


  3. If a package is in the distribution's pool directory but not in Packages.gz, it is most probably in another Package.gz. Notice how you have several words in a typical sources.list line:
    deb http://archive.ubuntu.com/ubuntu precise main universe multiverse
    main, universe and multiverse each have their own Packages.gz file. You may need to enable some, as debian for instance disables non-free by default. However, some packages still won't be available (not even in pool). You may choose to add untrusted repositories (such as PPAs on Ubuntu), package the missing program yourself (so you and other people can use their package manager to manage that program) or simply build and install it yourself (you should use the /usr/local prefix to avoid conflicts with your package manager).


  4. When a new (version of a) package appears, the Release file for the distribution is updated. This allows apt update to know it has to re-download Packages.gz.





share|improve this answer








New contributor



Nathan Monfils is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Thanks! that's exactly what i needed! Still one thing: is it ok to add the Packages.gz archive of another distrib to my sources.list? For example, if i want a new version of a package, which is not available in Debian 8 but is in Debian 9, and i don't want to add all the .deb files "per hand", i could just add http://ftp.debian.org/debian stretch main, so that i have access to all stretch packages. But is it safe? (i think i'm gonna try it on a vm :p )

    – Ablia
    9 hours ago












  • @Ablia No, it's not safe: the Debian 9 packages will be built against a newer kernel and libraries, and thus may require facilities not in Debian 8's kernel and libraries. If you're looking for newer versions of packages for Debian 8, you can try the backport repos.

    – Curt J. Sampson
    5 mins ago












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Ablia is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f521328%2fhow-does-apt-get-work-in-detail%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









5














  1. The Packages.gz contains a Filename field with a value that probably looks something like pool/main/n/name-of-package/name-of-package_version_amd64.deb. This tells the package manager to look at that URL.

    For instance, if you have the following line in your sources.list(.d):
    deb https://some-domain.com/some-url some-distribution main

    You will have the following file: https://some-domain.com/some-url/dists/some-distribution/main/binary-amd64/Packages.gz

    That file will reference pool/main/n/name-of-package/name-of-package_version_amd64.deb, so your package manager will look at https://some-domain.com/some-url/pool/main/n/name-of-package/name-of-package_version_amd64.deb.


  2. Sources.gz works the same way, but is optional. It works with apt source, which will fetch you the source if you wish to compile it yourself instead of using the pre-built binaries.

    This is mainly useful for system administrators who want to patch the exact version of the package used by a distribution, rather than contributors/curious people who would just go to the project's homepage and follow the build instructions there.


  3. If a package is in the distribution's pool directory but not in Packages.gz, it is most probably in another Package.gz. Notice how you have several words in a typical sources.list line:
    deb http://archive.ubuntu.com/ubuntu precise main universe multiverse
    main, universe and multiverse each have their own Packages.gz file. You may need to enable some, as debian for instance disables non-free by default. However, some packages still won't be available (not even in pool). You may choose to add untrusted repositories (such as PPAs on Ubuntu), package the missing program yourself (so you and other people can use their package manager to manage that program) or simply build and install it yourself (you should use the /usr/local prefix to avoid conflicts with your package manager).


  4. When a new (version of a) package appears, the Release file for the distribution is updated. This allows apt update to know it has to re-download Packages.gz.





share|improve this answer








New contributor



Nathan Monfils is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Thanks! that's exactly what i needed! Still one thing: is it ok to add the Packages.gz archive of another distrib to my sources.list? For example, if i want a new version of a package, which is not available in Debian 8 but is in Debian 9, and i don't want to add all the .deb files "per hand", i could just add http://ftp.debian.org/debian stretch main, so that i have access to all stretch packages. But is it safe? (i think i'm gonna try it on a vm :p )

    – Ablia
    9 hours ago












  • @Ablia No, it's not safe: the Debian 9 packages will be built against a newer kernel and libraries, and thus may require facilities not in Debian 8's kernel and libraries. If you're looking for newer versions of packages for Debian 8, you can try the backport repos.

    – Curt J. Sampson
    5 mins ago
















5














  1. The Packages.gz contains a Filename field with a value that probably looks something like pool/main/n/name-of-package/name-of-package_version_amd64.deb. This tells the package manager to look at that URL.

    For instance, if you have the following line in your sources.list(.d):
    deb https://some-domain.com/some-url some-distribution main

    You will have the following file: https://some-domain.com/some-url/dists/some-distribution/main/binary-amd64/Packages.gz

    That file will reference pool/main/n/name-of-package/name-of-package_version_amd64.deb, so your package manager will look at https://some-domain.com/some-url/pool/main/n/name-of-package/name-of-package_version_amd64.deb.


  2. Sources.gz works the same way, but is optional. It works with apt source, which will fetch you the source if you wish to compile it yourself instead of using the pre-built binaries.

    This is mainly useful for system administrators who want to patch the exact version of the package used by a distribution, rather than contributors/curious people who would just go to the project's homepage and follow the build instructions there.


  3. If a package is in the distribution's pool directory but not in Packages.gz, it is most probably in another Package.gz. Notice how you have several words in a typical sources.list line:
    deb http://archive.ubuntu.com/ubuntu precise main universe multiverse
    main, universe and multiverse each have their own Packages.gz file. You may need to enable some, as debian for instance disables non-free by default. However, some packages still won't be available (not even in pool). You may choose to add untrusted repositories (such as PPAs on Ubuntu), package the missing program yourself (so you and other people can use their package manager to manage that program) or simply build and install it yourself (you should use the /usr/local prefix to avoid conflicts with your package manager).


  4. When a new (version of a) package appears, the Release file for the distribution is updated. This allows apt update to know it has to re-download Packages.gz.





share|improve this answer








New contributor



Nathan Monfils is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Thanks! that's exactly what i needed! Still one thing: is it ok to add the Packages.gz archive of another distrib to my sources.list? For example, if i want a new version of a package, which is not available in Debian 8 but is in Debian 9, and i don't want to add all the .deb files "per hand", i could just add http://ftp.debian.org/debian stretch main, so that i have access to all stretch packages. But is it safe? (i think i'm gonna try it on a vm :p )

    – Ablia
    9 hours ago












  • @Ablia No, it's not safe: the Debian 9 packages will be built against a newer kernel and libraries, and thus may require facilities not in Debian 8's kernel and libraries. If you're looking for newer versions of packages for Debian 8, you can try the backport repos.

    – Curt J. Sampson
    5 mins ago














5












5








5







  1. The Packages.gz contains a Filename field with a value that probably looks something like pool/main/n/name-of-package/name-of-package_version_amd64.deb. This tells the package manager to look at that URL.

    For instance, if you have the following line in your sources.list(.d):
    deb https://some-domain.com/some-url some-distribution main

    You will have the following file: https://some-domain.com/some-url/dists/some-distribution/main/binary-amd64/Packages.gz

    That file will reference pool/main/n/name-of-package/name-of-package_version_amd64.deb, so your package manager will look at https://some-domain.com/some-url/pool/main/n/name-of-package/name-of-package_version_amd64.deb.


  2. Sources.gz works the same way, but is optional. It works with apt source, which will fetch you the source if you wish to compile it yourself instead of using the pre-built binaries.

    This is mainly useful for system administrators who want to patch the exact version of the package used by a distribution, rather than contributors/curious people who would just go to the project's homepage and follow the build instructions there.


  3. If a package is in the distribution's pool directory but not in Packages.gz, it is most probably in another Package.gz. Notice how you have several words in a typical sources.list line:
    deb http://archive.ubuntu.com/ubuntu precise main universe multiverse
    main, universe and multiverse each have their own Packages.gz file. You may need to enable some, as debian for instance disables non-free by default. However, some packages still won't be available (not even in pool). You may choose to add untrusted repositories (such as PPAs on Ubuntu), package the missing program yourself (so you and other people can use their package manager to manage that program) or simply build and install it yourself (you should use the /usr/local prefix to avoid conflicts with your package manager).


  4. When a new (version of a) package appears, the Release file for the distribution is updated. This allows apt update to know it has to re-download Packages.gz.





share|improve this answer








New contributor



Nathan Monfils is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









  1. The Packages.gz contains a Filename field with a value that probably looks something like pool/main/n/name-of-package/name-of-package_version_amd64.deb. This tells the package manager to look at that URL.

    For instance, if you have the following line in your sources.list(.d):
    deb https://some-domain.com/some-url some-distribution main

    You will have the following file: https://some-domain.com/some-url/dists/some-distribution/main/binary-amd64/Packages.gz

    That file will reference pool/main/n/name-of-package/name-of-package_version_amd64.deb, so your package manager will look at https://some-domain.com/some-url/pool/main/n/name-of-package/name-of-package_version_amd64.deb.


  2. Sources.gz works the same way, but is optional. It works with apt source, which will fetch you the source if you wish to compile it yourself instead of using the pre-built binaries.

    This is mainly useful for system administrators who want to patch the exact version of the package used by a distribution, rather than contributors/curious people who would just go to the project's homepage and follow the build instructions there.


  3. If a package is in the distribution's pool directory but not in Packages.gz, it is most probably in another Package.gz. Notice how you have several words in a typical sources.list line:
    deb http://archive.ubuntu.com/ubuntu precise main universe multiverse
    main, universe and multiverse each have their own Packages.gz file. You may need to enable some, as debian for instance disables non-free by default. However, some packages still won't be available (not even in pool). You may choose to add untrusted repositories (such as PPAs on Ubuntu), package the missing program yourself (so you and other people can use their package manager to manage that program) or simply build and install it yourself (you should use the /usr/local prefix to avoid conflicts with your package manager).


  4. When a new (version of a) package appears, the Release file for the distribution is updated. This allows apt update to know it has to re-download Packages.gz.






share|improve this answer








New contributor



Nathan Monfils is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this answer



share|improve this answer






New contributor



Nathan Monfils is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








answered 10 hours ago









Nathan MonfilsNathan Monfils

661




661




New contributor



Nathan Monfils is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




Nathan Monfils is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • Thanks! that's exactly what i needed! Still one thing: is it ok to add the Packages.gz archive of another distrib to my sources.list? For example, if i want a new version of a package, which is not available in Debian 8 but is in Debian 9, and i don't want to add all the .deb files "per hand", i could just add http://ftp.debian.org/debian stretch main, so that i have access to all stretch packages. But is it safe? (i think i'm gonna try it on a vm :p )

    – Ablia
    9 hours ago












  • @Ablia No, it's not safe: the Debian 9 packages will be built against a newer kernel and libraries, and thus may require facilities not in Debian 8's kernel and libraries. If you're looking for newer versions of packages for Debian 8, you can try the backport repos.

    – Curt J. Sampson
    5 mins ago


















  • Thanks! that's exactly what i needed! Still one thing: is it ok to add the Packages.gz archive of another distrib to my sources.list? For example, if i want a new version of a package, which is not available in Debian 8 but is in Debian 9, and i don't want to add all the .deb files "per hand", i could just add http://ftp.debian.org/debian stretch main, so that i have access to all stretch packages. But is it safe? (i think i'm gonna try it on a vm :p )

    – Ablia
    9 hours ago












  • @Ablia No, it's not safe: the Debian 9 packages will be built against a newer kernel and libraries, and thus may require facilities not in Debian 8's kernel and libraries. If you're looking for newer versions of packages for Debian 8, you can try the backport repos.

    – Curt J. Sampson
    5 mins ago

















Thanks! that's exactly what i needed! Still one thing: is it ok to add the Packages.gz archive of another distrib to my sources.list? For example, if i want a new version of a package, which is not available in Debian 8 but is in Debian 9, and i don't want to add all the .deb files "per hand", i could just add http://ftp.debian.org/debian stretch main, so that i have access to all stretch packages. But is it safe? (i think i'm gonna try it on a vm :p )

– Ablia
9 hours ago






Thanks! that's exactly what i needed! Still one thing: is it ok to add the Packages.gz archive of another distrib to my sources.list? For example, if i want a new version of a package, which is not available in Debian 8 but is in Debian 9, and i don't want to add all the .deb files "per hand", i could just add http://ftp.debian.org/debian stretch main, so that i have access to all stretch packages. But is it safe? (i think i'm gonna try it on a vm :p )

– Ablia
9 hours ago














@Ablia No, it's not safe: the Debian 9 packages will be built against a newer kernel and libraries, and thus may require facilities not in Debian 8's kernel and libraries. If you're looking for newer versions of packages for Debian 8, you can try the backport repos.

– Curt J. Sampson
5 mins ago






@Ablia No, it's not safe: the Debian 9 packages will be built against a newer kernel and libraries, and thus may require facilities not in Debian 8's kernel and libraries. If you're looking for newer versions of packages for Debian 8, you can try the backport repos.

– Curt J. Sampson
5 mins ago











Ablia is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Ablia is a new contributor. Be nice, and check out our Code of Conduct.












Ablia is a new contributor. Be nice, and check out our Code of Conduct.











Ablia is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f521328%2fhow-does-apt-get-work-in-detail%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

199年 目錄 大件事 到箇年出世嗰人 到箇年死嗰人 節慶、風俗習慣 導覽選單