Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement list command #143

Closed
2 of 10 tasks
Tracked by #429
mcurlej opened this issue Nov 11, 2022 · 3 comments
Closed
2 of 10 tasks
Tracked by #429

Implement list command #143

mcurlej opened this issue Nov 11, 2022 · 3 comments
Assignees
Labels
Priority: HIGH RFE Request For Enhancement (as opposed to a bug)
Milestone

Comments

@mcurlej
Copy link
Member

mcurlej commented Nov 11, 2022

  • Command: list

    • priority high
  • Aliases: ls

    • keep it

Prints lists of packages depending on the packages’ relation to the system. A package is installed if it is present in the RPMDB, and it is available if it is not installed but is present in a repository that DNF knows about.

The list command also limits the displayed packages according to specific criteria, e.g. to only those that update an installed package (respecting the repository priority). The exclude option in the configuration file can influence the result, but if the --disableexcludes command line option is used, it ensures that all installed packages will be listed.

  • dnf [options] list [--all] [<package-file-spec>...]
    • Shall we add --all option - it is a default behavior anyway
    • drop

Lists all packages, present in the RPMDB, in a repository or both.

  • dnf [options] list --installed [<package-file-spec>...]
    • priority high

Lists installed packages.

  • dnf [options] list --available [<package-file-spec>...]
    • priority high

Lists available packages.

  • dnf [options] list --extras [<package-file-spec>...]
    • priority low

Lists extras, that is packages installed on the system that are not available in any known repository.

  • dnf [options] list --obsoletes [<package-file-spec>...]
    • priority low

List packages installed on the system that are obsoleted by packages in any known repository.

  • dnf [options] list --recent [<package-file-spec>...]
    • priority low

List packages recently added into the repositories.

  • dnf [options] list --upgrades [<package-file-spec>...]
    • priority low

List upgrades available for the installed packages.

  • dnf [options] list --autoremove
    • priority low

List packages which will be removed by the dnf autoremove command.

This command by default does not force a sync of expired metadata. See also Metadata Synchronization.

@mcurlej mcurlej added the RFE Request For Enhancement (as opposed to a bug) label Nov 11, 2022
@Cyborgscode
Copy link

still missing.

@j-mracek j-mracek added this to the Fedora 39 milestone Nov 15, 2022
@mcurlej mcurlej added this to DNF team Nov 24, 2022
@mcurlej mcurlej moved this to Backlog in DNF team Nov 24, 2022
@j-mracek j-mracek moved this from Backlog to Todo in DNF team Jan 26, 2023
@m-blaha m-blaha self-assigned this Jan 27, 2023
@m-blaha m-blaha moved this from Todo to In Progress in DNF team Jan 27, 2023
@m-blaha
Copy link
Member

m-blaha commented Mar 9, 2023

List command was introduced by PR #298

@m-blaha m-blaha closed this as completed Mar 9, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in DNF team Mar 9, 2023
@bajertom
Copy link

bajertom commented May 5, 2023

--showduplicates
Shows the same version of package multiple times, it should list different versions of the same package, same behavior as in dnf5 info --available, see https://bugzilla.redhat.com/show_bug.cgi?id=2193138

--available
Shows different number of packages compared to dnf4: dnf5 shows additional .x86_64.rpm to their i686 counterpart.
Example from output:
NetworkManager-libnm.i686 1:1.42.6-1.fc38
vs
NetworkManager-libnm.i686 1:1.42.6-1.fc38
NetworkManager-libnm.x86_64 1:1.42.6-1.fc38

Not sure if this it a bug though.

--updates
Still present, even though this alias was dropped for dnf5 info command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: HIGH RFE Request For Enhancement (as opposed to a bug)
Projects
Archived in project
Development

No branches or pull requests

5 participants