Bug 957833
| Summary: | Please implement "yum localinstall" feture to dnf | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jindrich Novy <novyjindrich> |
| Component: | dnf | Assignee: | Ales Kozumplik <akozumpl> |
| Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | akozumpl, jnovy, jorj.oro, jzeleny, kaveesh.gamage, tomek, utilitymail |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-10-04 15:56:58 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jindrich Novy
2013-04-29 16:33:22 UTC
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?
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 |