libdnf icon indicating copy to clipboard operation
libdnf copied to clipboard

[DNF5] Find a way how to replace repositorypkgs command by CLI syntax

Open j-mracek opened this issue 3 years ago • 2 comments

Repositorypkgs command is primary used for installing packages from particular repository but dependencies can be satisfied from all available repository.

If we will find a way, how to add repository id to spec we can drop repositorypkgs command.

Example solution: NEVRA format can be extended for repository id information dnf-4.10.1-1.fc35.noarch@fedora # NEVRA@

j-mracek avatar Nov 09 '21 15:11 j-mracek

zypper(8) does this by using --from <repoid> instead. Maybe it's worth looking at that for inspiration?

Conan-Kudo avatar Nov 23 '21 02:11 Conan-Kudo

zypper(8) does this by using --from <repoid> instead. Maybe it's worth looking at that for inspiration?

Good idea. It means when I would like to install one package from one repository and the second one from another repository then I can use dnf shell to merge both requests and perform them in one transaction. I am fine with that.

j-mracek avatar Nov 23 '21 14:11 j-mracek