Fedora Account System
Red Hat Associate
Red Hat Customer
The localinstall feature is very useful thing to resolve deps and install packages which are downloaded locally in current directory. Because of lack of it in DNF I need to use YUM which sucks. I hope I wouldn't be the only one who will appreciate this feature in DNF as well.
Jindrich, this is what I read in Yum's documentation about localinstall: localinstall Is used to install a set of local rpm files. If required the enabled repositories will be used to resolve dependencies. Note that the install command will do a local install, if given a filename. This command is maintained for legacy reasons only. This was the reason why I removed localinstall. What does 'dnf install <local rpm>' do for you?
Works for me, thanks Ales!
Yum will install a local rpm if there are no dependencies inside the file. DNF will not and it then wants to download 2 megs of metadata bloat when I'm on a cell modem and have limited data.
@Mr. Meval, why not having: locally stored rpms, use 'createrepo_c' command, create a local.repo file in /etc/yum.repos.d and install normally with 'dnf install package' instead of a big headache?
I'm reopening because this functionality broke: # ls -l *rpm -rw-r--r--. 1 root root 90462 10-03 19:33 kernel-PAE-4.8.0-1.fc26.i686.rpm -rw-r--r--. 1 root root 19756534 10-03 19:34 kernel-PAE-core-4.8.0-1.fc26.i686.rpm -rw-r--r--. 1 root root 21815734 10-03 19:26 kernel-PAE-modules-4.8.0-1.fc26.i686.rpm # dnf install ./*rpm Last metadata expiration check: 0:27:26 ago on Tue Oct 04 17:14:08 2016 CEST. No match for argument: kernel-PAE-4.8.0-1.fc26.i686.rpm No match for argument: kernel-PAE-core-4.8.0-1.fc26.i686.rpm No match for argument: kernel-PAE-modules-4.8.0-1.fc26.i686.rpm Error: Unable to find a match # rpm -q dnf dnf-2.0.0-0.rc1.2.fc26.noarch
(In reply to Tomasz Torcz from comment #6) > I'm reopening because this functionality broke: Please open new bug. > > # ls -l *rpm > -rw-r--r--. 1 root root 90462 10-03 19:33 kernel-PAE-4.8.0-1.fc26.i686.rpm > -rw-r--r--. 1 root root 19756534 10-03 19:34 > kernel-PAE-core-4.8.0-1.fc26.i686.rpm > -rw-r--r--. 1 root root 21815734 10-03 19:26 > kernel-PAE-modules-4.8.0-1.fc26.i686.rpm > > # dnf install ./*rpm > Last metadata expiration check: 0:27:26 ago on Tue Oct 04 17:14:08 2016 CEST. > No match for argument: kernel-PAE-4.8.0-1.fc26.i686.rpm > No match for argument: kernel-PAE-core-4.8.0-1.fc26.i686.rpm > No match for argument: kernel-PAE-modules-4.8.0-1.fc26.i686.rpm > Error: Unable to find a match > > # rpm -q dnf > dnf-2.0.0-0.rc1.2.fc26.noarch