What's the equivalent of
yumdownloader --source package
for dnf? Or how do I download a source package with dnf? Thanks!
On 08/25/15 11:04, Amadeus W.M. wrote:
What's the equivalent of
yumdownloader --source package
for dnf? Or how do I download a source package with dnf? Thanks!
dnf download --source firefox will download the current src.rpm for firefox.
You'll need to have the dnf-plugins-core package installed to have access to the "download" command for dnf.
Hi,
you'll need to have the dnf-plugins-core package installed to have access to the "download" command for dnf.
Are you sure ?
I tried this sequence on Fedora 22:
$ dnf download --source iproute enabling fedora-source repository enabling updates-source repository Last metadata expiration check performed 0:01:35 ago on Tue Aug 25 08:04:37 2015. iproute-3.16.0-3.fc22.src.rpm 689 kB/s | 615 kB 00:00
$ rpm -q dnf-plugins-core package dnf-plugins-core is not installed
Regards, Rami Rosen http://ramirose.wix.com/ramirosen
On 08/25/15 13:08, Rami Rosen wrote:
Hi,
you'll need to have the dnf-plugins-core package installed to have access to the "download" command for dnf.
Are you sure ?
I tried this sequence on Fedora 22:
$ dnf download --source iproute enabling fedora-source repository enabling updates-source repository Last metadata expiration check performed 0:01:35 ago on Tue Aug 25 08:04:37 2015. iproute-3.16.0-3.fc22.src.rpm 689 kB/s | 615 kB 00:00
$ rpm -q dnf-plugins-core package dnf-plugins-core is not installed
Well, according to the "info" you do....
Name : dnf-plugins-core Arch : noarch Epoch : 0 Version : 0.1.10 Release : 1.fc22 Size : 7.7 k Repo : @System
From repo : updates
Summary : Core Plugins for DNF URL : https://github.com/rpm-software-management/dnf-plugins-core License : GPLv2+ Description : Core Plugins for DNF. This package enhance DNF with builddep, : config-manager, copr, debuginfo-install, download, needs-restarting, : repoquery and reposync commands. Additionally provides : generate_completion_cache, noroot and protected_packages passive : plugins.
But, if it works without it, that is fine too. :-)
On 08/25/15 13:08, Rami Rosen wrote:
Hi,
you'll need to have the dnf-plugins-core package installed to have access to the "download" command for dnf.
Are you sure ?
I tried this sequence on Fedora 22:
$ dnf download --source iproute enabling fedora-source repository enabling updates-source repository Last metadata expiration check performed 0:01:35 ago on Tue Aug 25 08:04:37 2015. iproute-3.16.0-3.fc22.src.rpm 689 kB/s | 615 kB 00:00
$ rpm -q dnf-plugins-core package dnf-plugins-core is not installed
Regards, Rami Rosen http://ramirose.wix.com/ramirosen
python-dnf-plugins-core is also possible
Name : python-dnf-plugins-core Arch : noarch Epoch : 0 Version : 0.1.10 Release : 1.fc22 Size : 210 k Repo : @System
From repo : updates
Summary : Core Plugins for DNF URL : https://github.com/rpm-software-management/dnf-plugins-core License : GPLv2+ Description : Core Plugins for DNF, Python 2 interface. This package enhance DNF : with builddep, copr, debuginfo-install, download, kickstart, : needs-restarting, repoquery and reposync commands. Additionally : provides generate_completion_cache, noroot and protected_packages : passive plugins.
On 25 August 2015 at 07:41, Ed Greshko ed.greshko@greshko.com wrote:
On 08/25/15 13:08, Rami Rosen wrote:
Hi,
you'll need to have the dnf-plugins-core package installed to have
access to the "download" command for dnf.
Are you sure ?
I tried this sequence on Fedora 22:
$ dnf download --source iproute enabling fedora-source repository enabling updates-source repository Last metadata expiration check performed 0:01:35 ago on Tue Aug 25 08:04:37 2015. iproute-3.16.0-3.fc22.src.rpm 689 kB/s | 615 kB 00:00
$ rpm -q dnf-plugins-core package dnf-plugins-core is not installed
Regards, Rami Rosen http://ramirose.wix.com/ramirosen
python-dnf-plugins-core is also possible
Name : python-dnf-plugins-core Arch : noarch Epoch : 0 Version : 0.1.10 Release : 1.fc22 Size : 210 k Repo : @System From repo : updates Summary : Core Plugins for DNF URL : https://github.com/rpm-software-management/dnf-plugins-core License : GPLv2+ Description : Core Plugins for DNF, Python 2 interface. This package enhance DNF : with builddep, copr, debuginfo-install, download, kickstart, : needs-restarting, repoquery and reposync commands. Additionally : provides generate_completion_cache, noroot and protected_packages : passive plugins.
The dnf-plugins-core package only contains manual pages, whereas python-dnf-plugins-core contains the actual plugins for python2 and python3-dnf-plugins-core contains the plugins for python3 (all built from the same source rpm).
dnf-plugins-core acts more as a -common package or a meta package that, currently, pulls python-dnf-plugins-core (but python-dnf-plugins-core doesn't require dnf-plugins-core); I guess in future when dnf switches to using python3 by default it'll require python3-dnf-plugins-core.
-- Ahmad Samir
On 08/25/15 16:27, Ahmad Samir wrote:
The dnf-plugins-core package only contains manual pages
I suppose it would have been nice for the "Description" to make that clear. :-)
Hi
On Tue, Aug 25, 2015 at 5:01 AM, Ed Greshko wrote:
On 08/25/15 16:27, Ahmad Samir wrote:
The dnf-plugins-core package only contains manual pages
I suppose it would have been nice for the "Description" to make that clear. :-)
Maybe a nice bug report will make that happen :-)
Rahul
On 08/26/15 08:50, Rahul Sundaram wrote:
Hi
On Tue, Aug 25, 2015 at 5:01 AM, Ed Greshko wrote:
On 08/25/15 16:27, Ahmad Samir wrote: > The dnf-plugins-core package only contains manual pages I suppose it would have been nice for the "Description" to make that clear. :-)Maybe a nice bug report will make that happen :-)
Strangely, that is on my to-do list for this week. :-)
On 08/25/15 13:08, Rami Rosen wrote:
Hi,
you'll need to have the dnf-plugins-core package installed to have access to the "download" command for dnf.
Are you sure ?
Just to continue the investigation of what you're suggesting/seeing ....
[egreshko@f22k ~]$ rpm -q dnf-plugins-core python-dnf-plugins-core dnf-plugins-core-0.1.10-1.fc22.noarch python-dnf-plugins-core-0.1.10-1.fc22.noarch [egreshko@f22k ~]$ sudo dnf erase python-dnf-plugins-core dnf-plugins-core [sudo] password for egreshko: Dependencies resolved. ================================================================================== Package Arch Version Repository Size ================================================================================== Removing: dnf-plugins-core noarch 0.1.10-1.fc22 @System 7.7 k python-dnf-plugins-core noarch 0.1.10-1.fc22 @System 210 k
Transaction Summary ================================================================================== Remove 2 Packages
Installed size: 218 k Is this ok [y/N]: y Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Erasing : dnf-plugins-core-0.1.10-1.fc22.noarch 1/2 Erasing : python-dnf-plugins-core-0.1.10-1.fc22.noarch 2/2 Verifying : dnf-plugins-core-0.1.10-1.fc22.noarch 1/2 Verifying : python-dnf-plugins-core-0.1.10-1.fc22.noarch 2/2
Removed: dnf-plugins-core.noarch 0.1.10-1.fc22 python-dnf-plugins-core.noarch 0.1.10-1.fc22
Complete!
But then.....
[egreshko@f22k ~]$ dnf download --source firefox No such command: download. Please use /usr/bin/dnf --help It could be a DNF plugin command, try: "dnf install 'dnf-command(download)'"
So I did....
[egreshko@f22k ~]$ sudo dnf install 'dnf-command(download)' Last metadata expiration check performed 1:05:31 ago on Tue Aug 25 13:40:10 2015. Dependencies resolved. ================================================================================== Package Arch Version Repository Size ================================================================================== Installing: dnf-plugins-core noarch 0.1.10-1.fc22 updates 34 k python-dnf-plugins-core noarch 0.1.10-1.fc22 updates 83 k
Transaction Summary ================================================================================== Install 2 Packages
Total download size: 117 k Installed size: 218 k Is this ok [y/N]: y Downloading Packages: (1/2): dnf-plugins-core-0.1.10-1.fc22.noarch.rpm 47 kB/s | 34 kB 00:00 (2/2): python-dnf-plugins-core-0.1.10-1.fc22.noar 88 kB/s | 83 kB 00:00 ---------------------------------------------------------------------------------- Total 43 kB/s | 117 kB 00:02 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Installing : python-dnf-plugins-core-0.1.10-1.fc22.noarch 1/2 Installing : dnf-plugins-core-0.1.10-1.fc22.noarch 2/2 Verifying : dnf-plugins-core-0.1.10-1.fc22.noarch 1/2 Verifying : python-dnf-plugins-core-0.1.10-1.fc22.noarch 2/2
Installed: dnf-plugins-core.noarch 0.1.10-1.fc22 python-dnf-plugins-core.noarch 0.1.10-1.fc22
And then....
[egreshko@f22k ~]$ dnf download --source firefox enabling fedora-source repository enabling rpmfusion-free-updates-source repository enabling rpmfusion-free-source repository enabling rpmfusion-nonfree-updates-source repository enabling updates-source repository enabling rpmfusion-nonfree-source repository . . .
It worked....
Wondering if your rpmdb may be corrupt.