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;
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
add a comment
|
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
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
add a comment
|
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
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
apt apt-cache apt-cacher-ng apt-cacher
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
add a comment
|
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
add a comment
|
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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