apt-cache implementationHow to use apt-get to install packages without one specify package?How does apt-get suggestion works?How does APT work (apt-get, cache, search)System freezes, apt-cache running 100% for an hour?

Adding "dot com" to the end of a sentence?

DS 160 Have you traveled to any countries/regions within the last five years?

Logic inside a 3 or 4 way light switch?

What do you call candidates in elections who don't actually have a chance to win and only create an illusion of competition?

Are monosubstituted cyclopropanes achiral or chiral?

Wording of a statistics question

Combinations of different letters in specific positions

Draw the Ionising Radiation Hazard Symbol

Is there any benefit to keeping money in a checking account?

Can humans of House Tharashk develop the Mark of Finding?

Messed up my .bash_profile remotely, can't ssh back in

Is the worst version of the accusations against President Trump impeachable?

Why did we never simplify key signatures?

If I have an Earth-like world with Earth-like fauna, and I want brightly-colored mammals, what would be a realistic way of causing that to evolve?

Could a balloon or airplane launched rocket get humans into orbit?

Got $2 in the mail from the Pew Research Center, is this a scam?

Time Complexity: Factorial and Exponentiation

Why aren't flights continued after losing a tire on rotation?

MTG - Priority and timing between activated abilities and instants

Is an afterburner louder than the same jet engine without it?

Cheap and safe way to dim 100+ 60W Incandescent bulbs

Sorting sequences independent of color

Dual wielding two +1 Longswords, do they stack?

Sump pump automated battery backup



apt-cache implementation


How to use apt-get to install packages without one specify package?How does apt-get suggestion works?How does APT work (apt-get, cache, search)System freezes, apt-cache running 100% for an hour?






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









3


















I am looking at the apt-cache implementation. How does apt-cache create and updates the local package cache? Is it periodic or manual? As far as my investigation, it is manual (apt-get update).



When we run "apt-get update", does it download all the packages information or does the current state of cache (like all package information and version) be sent to the server then the client machine (where apt-get update is running) gets only what has changed compared with local cache information?



fyi, I am using Linux 4.4.0-18362-Microsoft. "apt-config dump" command output doesn't show "APT::Cache::Generate".










share|improve this question



























  • I would suggest to read its source code - see salsa.debian.org/apt-team/apt/blob/master/cmdline/apt-cache.cc .

    – N0rbert
    Sep 19 at 19:42

















3


















I am looking at the apt-cache implementation. How does apt-cache create and updates the local package cache? Is it periodic or manual? As far as my investigation, it is manual (apt-get update).



When we run "apt-get update", does it download all the packages information or does the current state of cache (like all package information and version) be sent to the server then the client machine (where apt-get update is running) gets only what has changed compared with local cache information?



fyi, I am using Linux 4.4.0-18362-Microsoft. "apt-config dump" command output doesn't show "APT::Cache::Generate".










share|improve this question



























  • I would suggest to read its source code - see salsa.debian.org/apt-team/apt/blob/master/cmdline/apt-cache.cc .

    – N0rbert
    Sep 19 at 19:42













3













3









3








I am looking at the apt-cache implementation. How does apt-cache create and updates the local package cache? Is it periodic or manual? As far as my investigation, it is manual (apt-get update).



When we run "apt-get update", does it download all the packages information or does the current state of cache (like all package information and version) be sent to the server then the client machine (where apt-get update is running) gets only what has changed compared with local cache information?



fyi, I am using Linux 4.4.0-18362-Microsoft. "apt-config dump" command output doesn't show "APT::Cache::Generate".










share|improve this question
















I am looking at the apt-cache implementation. How does apt-cache create and updates the local package cache? Is it periodic or manual? As far as my investigation, it is manual (apt-get update).



When we run "apt-get update", does it download all the packages information or does the current state of cache (like all package information and version) be sent to the server then the client machine (where apt-get update is running) gets only what has changed compared with local cache information?



fyi, I am using Linux 4.4.0-18362-Microsoft. "apt-config dump" command output doesn't show "APT::Cache::Generate".







apt apt-cache apt-cacher-ng apt-cacher






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 19 at 17:27







kavitha R

















asked Sep 19 at 17:17









kavitha Rkavitha R

311 bronze badge




311 bronze badge















  • I would suggest to read its source code - see salsa.debian.org/apt-team/apt/blob/master/cmdline/apt-cache.cc .

    – N0rbert
    Sep 19 at 19:42

















  • I would suggest to read its source code - see salsa.debian.org/apt-team/apt/blob/master/cmdline/apt-cache.cc .

    – N0rbert
    Sep 19 at 19:42
















I would suggest to read its source code - see salsa.debian.org/apt-team/apt/blob/master/cmdline/apt-cache.cc .

– N0rbert
Sep 19 at 19:42





I would suggest to read its source code - see salsa.debian.org/apt-team/apt/blob/master/cmdline/apt-cache.cc .

– N0rbert
Sep 19 at 19:42










0






active

oldest

votes













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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/4.0/"u003ecc by-sa 4.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
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1175311%2fapt-cache-implementation%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown


























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded















































Thanks for contributing an answer to Ask Ubuntu!


  • 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%2faskubuntu.com%2fquestions%2f1175311%2fapt-cache-implementation%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

Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü