summaryrefslogtreecommitdiff
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* Release 2.9.152.9.15Julian Andres Klode2024-11-282-3/+3
|
* Release 2.9.142.9.14Julian Andres Klode2024-11-222-3/+3
| | | | | Oh well I accidentally committed everything from my work email today but I'm off today ...
* Merge branch 'fix/partialfilemirror' into 'main'Julian Andres Klode2024-11-221-19/+48
|\ | | | | | | | | Support uncompressed indexes from partial file:/ mirrors See merge request apt-team/apt!235
| * Allow AutoDetectProxy to work with more than just http(s)David Kalnischkies2024-11-221-6/+12
| | | | | | | | | | | | | | | | It is a bit unfair for third-party methods wrapping e.g. http to not have access to such tools, same for our old ftp and e.g. our tor even if in practice this isn't used much even for http. At least that is one less FIXME in the code.
| * Rewrite hidden config option checker for more patternsDavid Kalnischkies2024-11-221-13/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | The previous version allowed only foo::*::bar as a pattern, now you can have as many starred parts as you want allowing for a finer control instead of hardcoding specific common star-values or giving up with **. It also adds a new INVALID type for an option to mark options which should not be used, but are covered by a pattern which would normally allow it. Our tests are more or less the only users of this hidden feature making this change not very risky even through it has no dedicated test itself.
* | Avoid unnormalized paths for CMake install destinationsDavid Kalnischkies2024-11-222-4/+5
|/ | | | | | | | | | | CMake 3.31 is very noisy about our manpage (and to a lesser extend documentation in general) building as we used "//" and "/../" there. `cmake --help-policy CMP0177` documents the warning, so we could just decide on a value and deal with it, but given our usage is not really needed and rather trivial to change lets not pick a value and instead use a normalized path so we don't use different code paths in CMake depending on which CMake version we happen to be build with.
* Dutch manpages translation updateFrans Spiesschaert2024-11-221-23/+10
| | | | Closes: #1087461
* Release 2.9.132.9.13Julian Andres Klode2024-11-2012-13/+143
|
* Add a --comment option to record Comment: in historyJulian Andres Klode2024-11-182-0/+7
| | | | Suggested-by: mhoye on IRC
* Release 2.9.122.9.12Julian Andres Klode2024-11-182-3/+3
|
* http: use Retry-After HTTP header to optimize retriesFelix Moessbauer2024-11-181-0/+1
| | | | | | | | | | | | | | | | | | | Some mirrors like snapshot.debian.org apply strict http rate limits. While apt already has an exponential backoff mechanism implemented, this is not sufficient due to the following reasons: 1. all retries happen roughly at the same time 2. the retry-after information from the server is not used We fix this by improving the algorithm: First, if present, the timestamp or duration of the Retry-After header is added to the exponential backoff, optimizing for success-on-second-try. Second, a random delay is added (delay += [0, delay]) to distribute the retries to not immediately run into the limit again. To avoid super-long delays, this is capped by the configured maximum delay. This logic only becomes active if the option Acquire::Retries::HandleRetryAfter is enabled. Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
* Release 2.9.112.9.11Julian Andres Klode2024-11-142-3/+3
|
* Merge branch 'json-config' into 'main'Julian Andres Klode2024-11-141-3/+29
|\ | | | | | | | | JSON: Pass options to hooks in hello message See merge request apt-team/apt!389
| * json: Add "options" array to JSON hooksJulian Andres Klode2024-11-121-3/+29
| | | | | | | | | | See the attached documentation. Note that defaults are missing, so using this is not particularly easy so far.
* | Portuguese manpages translation updateAmérico Monteiro2024-11-121-117/+79
|/ | | | Closes: #1086336
* Release 2.9.102.9.10Julian Andres Klode2024-10-2214-97/+287
|
* Merge branch 'main' into 'main'Julian Andres Klode2024-10-2212-22/+23
|\ | | | | | | | | Minor localisation fixes See merge request apt-team/apt!374
| * Update manual link in apt-secure(8)Rafael Marian2024-09-1611-21/+21
| | | | | | | | Closes: #1050616
| * Fixed missing spaces in apt-mark(8)Rafael Marian2024-09-141-1/+2
| | | | | | | | Closes: #959854
* | apt-patterns(7): document recommendsChristopher Bock2024-10-221-1/+2
| |
* | Release 2.9.92.9.9Julian Andres Klode2024-10-1712-13/+216
|/
* Implement 'Pin: source-version <foo>'Julian Andres Klode2024-08-221-0/+8
| | | | As wondered about by Paride some minutes ago.
* Release 2.9.82.9.8Julian Andres Klode2024-08-122-3/+3
|
* Release 2.9.72.9.7Julian Andres Klode2024-07-302-3/+3
|
* Merge branch 'deprecate-pubkey-algos' into 'main'Julian Andres Klode2024-07-301-0/+2
|\ | | | | | | | | Only revoke weak RSA keys now, add 'next' and 'future' levels See merge request apt-team/apt!365
| * Only revoke weak RSA keys for now, add 'next' and 'future' levelsJulian Andres Klode2024-07-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | Algorithms not in the next level give a warning, algorithms in not in the future level introduce an audit message for the --audit flag. next: >=rsa2048,ed25519,ed448,nistp256,nistp384,nistp512 future: >=rsa3072,ed25519,ed448 LP: #2073126
* | Dutch manpages translation updateFrans Spiesschaert2024-07-081-21/+4
|/ | | | Closes: #1075875
* Release 2.9.62.9.6Julian Andres Klode2024-07-022-3/+3
|
* Release 2.9.52.9.5Julian Andres Klode2024-06-1312-50/+84
|
* Merge branch 'snapshot-typo' into 'main'Julian Andres Klode2024-06-131-1/+1
|\ | | | | | | | | Fix spelling of @SNAPSHOTID@ in apt.conf.5.xml See merge request apt-team/apt!353
| * Fix spelling of @SNAPSHOTID@ in apt.conf.5.xmlNoah Meyerhans2024-05-291-1/+1
| | | | | | | | Closes: #1072189
* | Dutch manpages translation updateFrans Spiesschaert2024-06-111-48/+36
|/ | | | Closes: #1072494
* Release 2.9.42.9.4Julian Andres Klode2024-05-252-3/+3
|
* solver3: Implement APT::Solver::RemoveManual to allow removing manual packagesJulian Andres Klode2024-05-241-0/+1
| | | | | | This is mostly going to be useful for the test suite for now, implement a function there to set it up so we can use it to improve test suite correctness.
* Release 2.9.32.9.3Julian Andres Klode2024-05-142-3/+3
|
* Initial implementation of the 3.0 solverJulian Andres Klode2024-05-141-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a simple backtracking brute-force solver with heurisitcs, this initial version has the following known gaps: - Errors are not kept from branches, the error reporting after backtracking isn't particularly useful. - We cannot show automatically removed packages - We cannot replace packages with others - We do not have conflict-driven clause learning yet Untested: - Multi-arch This solver is fundamentally different in key aspects: - It solves smaller dependency groups before larger ones, leading us to avoid installing A in A|B if B is installed more often and more consistently. - It only keeps the automatic packages reachable via the strongest path. Currently it only implements autoremoval, but not display of autoremoval as we simply enqueue all automatically installed packages at the end when not doing automatic removal. This will need some translation where we Solve() first, and then Solve() again with the automatically installed packages added such that we can mark them as Garbage for display purposes. - It does not remove manually installed packages. Hook the solver in via the EDSP framework, this allows us to achieve easy initial integration without lots of issues. A lot of this work was planned and executed in my free time and then some leaked into work time I suppose. Implementation notes: - Restore the full backlog of items The annoying thing is that we record only when an item was enqueued and not the level at which it was installed, so when going back a decision level we might have to reinstall packages that were queued at an earlier decision level because they were only installed at a later decision level. - When picking one version, reject the others - Propagate conflicts up to reverse dependencies This will recursively mark every reverse dependency that can no longer be satisfied as MUSTNOT. Also make sure to recursively call Reject(Ver) from Reject(Pkg) to make sure we trigger the Rejections there. This means we now end up having Recursion in the algorithm. An alternative approach would be to push *reject* items to the heap and then do them, but this is not entirely straight forward and it may simply not be necessary. - Sort upgrades before other optional installs containing subsets If I want to upgrade a package A, I schedule A3|A2|A1; if another thing depends specifically on A1; we'd not be installed. Hence we need to sort upgrades first. This only is needed for optional packages; manual packages will figure this out naturally. - Rescoring is lazily implemented. Instead of calling make_heap() after rescoring items, we just mark the items as dirty and reinsert them. We also only rescore from the main solve loop, Reject() marks the heap as needing a rescore due to a Conflict (as some versions will no longer be installable), and RescoreWorkIfNeeded() then will do the rescoring. - Recursive unit propagation: Install() and Reject() recursively call each other to promote decisions across single-version dependencies (or across not-anymore satisfiable reverse-depends). - Make Reason constructors explicit, this enhances readability This makes calls like the one in here be Reject(object, Reason(otherObject)) Ensuring that it's clear that the 2nd argument is a reason at the caller side. - Split Decision into Decision and Hint vs. first draft When branching/deciding, we do not want to override SHOULD and MAY. We do not actually use them yet, and we do actually clean them when backtracking, but let's at least keep the data structure correct. Convert the enum to a 16-bit integer so we can still fit in the same space as before.
* Dutch manpages translation updateFrans Spiesschaert2024-05-061-28/+21
| | | | Closes: #1070143
* Release 2.9.22.9.2Julian Andres Klode2024-04-2212-47/+1165
|
* Merge branch 'ui-2.9.2' into 'main'Julian Andres Klode2024-04-221-0/+3
|\ | | | | | | | | UI changes for 2.9.2 See merge request apt-team/apt!343
| * show: Highlight field names and colorize package nameJulian Andres Klode2024-04-191-0/+2
| | | | | | | | We should pass this properly to the TagSection.write()
| * apt update: Show upgradable package count in boldJulian Andres Klode2024-04-191-0/+1
| |
* | Add an --audit option to switch on audit loggingJulian Andres Klode2024-04-192-0/+8
|/ | | | | This option is recommended to be used by repository operators for testing.
* apt.conf(5): Document the APT::Color scopeJulian Andres Klode2024-04-191-0/+39
|
* Add a --color, --no-color optionJulian Andres Klode2024-04-191-0/+10
| | | | Wrap empty else in {} to avoid readability issues
* Release 2.9.12.9.1Julian Andres Klode2024-04-142-3/+3
|
* Show space estimate for /boot, if separate; or estimate initrd for /usrJulian Andres Klode2024-04-131-0/+3
| | | | | | | | | Calculate an estimate of 110% of the biggest initrd + system.map as the additional space a kernel needs in /boot. If /boot is a different file system than /usr, print the size of the kernels + the additional space they will need separately; otherwise include it in our /usr figure.
* Release 2.9.02.9.0Julian Andres Klode2024-04-1212-29/+159
|
* apt: Introduce the new terse apt output format 3.0Julian Andres Klode2024-04-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The key talking points here are: 1. Instead of long sentences, we use short concise messages, e.g. "The following NEW packages will be installed" becomes "Installing". 2. Dependencies are only listed once. We removed the "The following additional packages will be installed" section in favor of splitting up the "Installing" section into "Installing" and "Installing dependencies" (like dnf) 3. The order of the output is different: 1. Packages to be installed manually 2. Packages to be installed automatically 4. Weak dependencies of new packages not installed 3. Packages to be upgraded 4. Packages to be downgraded 5. Packages that have been kept back / are on hold 6. Removals 7. Essential removals i.e. we logically show you the action that is being done, followed by lists related to the action. 4. As requested by popey, we have colorful UI, with green for packages being installed and red for packages being removed. Caveats: - The list of recommends and suggests has not been updated yet, it should move to after the packages being installed (as they are what triggers them) This also introduces output format versioning, configured by the APT::Output-Format option. The default value is 0, except for the apt(8) binary where it is 30 - which enables the new style.
* OpProgress: Erase lines when doneJulian Andres Klode2024-04-121-0/+1
| | | | | | | | | | | It's interesting to the user to see the progress when it happens, but arguably once it's done it is just visual clutter, so let's not write newlines, and when we are done, instead of appending "Done", let's just empty the line. This requires some effort to keep apt-cdrom happy which just writes lines to stdout itself. Bad apt-cdrom. Maybe there is a better fix for it, but this gets us going.
* Columnar output for package lists similar to 'ls'Christian Blichmann2024-04-122-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change makes it a bit easier to quickly grasp the changes about to be performed by apt. It displays package lists in a columnar format by default, similar to what `ls` produces for files. A new long option `--no-list-columns` and an associated `APT::Get::List-Columns` config setting control the behavior. Usage example, with 60 column wide terminal: ``` $ sudo apt upgrade | Reading package lists... Done | Building dependency tree... Done | Reading state information... Done | Calculating upgrade... Done | The following packages were automatically installed and are | no longer required: | libappindicator1 libindicator7 | libdbusmenu-gtk4 linux-image-5.14.0-4-amd64 | Use 'sudo apt autoremove' to remove them. | The following packages have been kept back: | criu linux-headers-amd64 nvidia-settings | libxnvctrl0 nvidia-modprobe xwayland | 0 upgraded, 0 newly installed, 0 to remove and 6 not upgrade| d. | ``` The effect becomes more pronounced with more packages (e.g. when doing a dist-upgrade).