- This topic has 3 replies, 4 voices, and was last updated Dec 3-5:28 pm by Brian Masinick.
- December 3, 2023 at 6:18 am #125070MemberXunzi_23
Some basic commands and flags plus a number of very useful links.
Should you find a reproducable bug in APT which is not already listed for your debian version in
https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=apt;dist=unstable (replace tag unstable as neccesary)
Please report it:
Downloads a package but does not continue with the installation.
Does not download any packages and uses the ones already downloaded.
Answers “no” to all prompts.
Answers “yes” to prompts without interrupting the process.
Tries to fix broken dependencies.
Does not alter the system, only displays what the output will be.
Prints a help guide and leads to an Easter Egg.
Gets the info about the latest versions of available packages but does not install any upgrades.
Downloads the up-to-date package versions and upgrades installed packages to the new version.
Upgrades the currently installed packages and removes packages not needed for the full system upgrade.
Installs a specified package from the repository.
Deletes a package but leaves configuration files.
Deletes a package and any configuration files.
Removes no longer required dependencies.
Lists all available packages or packages according to specific criteria.
Searches for packages whose name or description contains the search term.
Prints details about a specific package.
Allows users to edit package sources in a text editor.
For reasonably easy to understand and fairly complete in depth articles on apt, Advanced Package Tool usage options and commands
Please VisitDecember 3, 2023 at 2:28 pm #125086Memberstevesr0
I would give a + but that is not available for an opening post.December 3, 2023 at 5:05 pm #125098Memberanti-apXos
Thanks, Xunzi_23. I always use commandline apt, but I admit there’s a lot I don’t understand about how it works.
One thing that’s always confused me and that your post finally motivated me to look up is why ‘apt install’ sometimes asks for confirmation before downloading and installing and other times doesn’t.
I thought maybe it had to do with the size of the install, but actually it’s whether there are any dependencies that weren’t explicitly listed in the commandline. If there aren’t additional depends, installation proceeds without a prompt.
I like being able to see the download and install size before installing, but apparently there’s no way to override this behavior so that you always get a prompt. However, the ‘–print-uris’ commandline option works similar to ‘–simulate’, but also gives the size info, so it can be used.December 3, 2023 at 5:28 pm #125101ModeratorBrian Masinick
Thanks again for additional documentation regarding apt; it’s an excellent addition to your recent explanations and deep dive into the apt source code.
Very useful information for both novices and veterans; I have found value in both of your recent group of posts.
- You must be logged in to reply to this topic.