Description of problem: bug or intended(documented?) behaviour? Version: urpmi-8.131-1 Steps to Reproduce: I downloaded a specific kernel rpm, and told urpmi to install it. Then it wanted to instead fetch kernel from release repo! $ LC_ALL=C sudo urpmi ./kernel-desktop-6.1.34-2.mga8-1-1.mga8.x86_64.rpm To satisfy dependencies, the following packages are going to be installed: Package Version Release Arch (medium "Core Release") kernel-desktop 6.4.3 1.mga9 x86_64 (recommended) kernel-desktop-latest 6.4.3 1.mga9 x86_64 (recommended) (command line) kernel-desktop-6.1.34-2.mga8 1 1.mga8 x86_64 170MB of additional disk space will be used. 151MB of packages will be retrieved. Proceed with the installation of the 3 packages? (Y/n) n Disabled core release repo and it worked: $ LC_ALL=C sudo urpmi ./kernel-desktop-6.1.34-2.mga8-1-1.mga8.x86_64.rpm installing kernel-desktop-6.1.34-2.mga8-1-1.mga8.x86_64.rpm from . Preparing... ################################################################################ 1/1: kernel-desktop-6.1.34-2.mga8
When installing an rpm from a file, just use "rpm -i thefilename", not urpmi.
CC: (none) => davidwhodgins
Thanks. But about urpmi - do it always try to use later version of a package in any repo even when user define a specific version?
Summary: urpmin install from repo despite i give it local file => urpmi install from repo despite i give it local file
It's because the pkg you were trying to install most probably recommends 'kernel-desktop-latest' and that's pulling the 'extra' pkgs. One solution is to install with --no-recommends. What's the output of $ urpmq --recommends ./kernel-desktop-6.1.34-2.mga8-1-1.mga8.x86_64.rpm
CC: (none) => jani.valimaa
(In reply to Dave Hodgins from comment #1) > When installing an rpm from a file, just use "rpm -i thefilename", not urpmi. Why to use rpm, if we have a specific tool to install pkgs? Anyway, it's better to always use 'rpm -U' instead. It'll handle removing the old pkg, if any, and properly handles configuration files.
OK this seem to work "as designed", though confusing. If i tell it to install a specific kernel, If there is no desktop-latest installed, urpmi install latest desktop-latest and kernel it finds in repos. If there is a desktop-latest of any version installed, urpmi install given kernel. ]$ urpmq --recommends ./kernel-desktop-6.1.34-2.mga8-1-1.mga8.x86_64.rpm cpupower iw kernel-desktop-latest microcode With no desktop-latest package installed: $ LC_ALL=C sudo urpmi --test ./kernel-desktop-6.1.34-2.mga8-1-1.mga8.x86_64.rpm [sudo] password for morgan: Sorry, try again. [sudo] password for morgan: To satisfy dependencies, the following packages are going to be installed: (test only, installation will not be actually done) Package Version Release Arch (medium "Core Release") kernel-desktop 6.4.3 1.mga9 x86_64 (recommended) kernel-desktop-latest 6.4.3 1.mga9 x86_64 (recommended) (command line) kernel-desktop-6.1.34-2.mga8 1 1.mga8 x86_64 It works to give it a specific desktop-latest in same round: $ LC_ALL=C sudo urpmi --test ./kernel-desktop-latest-6.1.34-2.mga8.x86_64.rpm kernel-desktop-6.1.34-2.mga8-1-1.mga8.x86_64.rpm installing kernel-desktop-6.1.34-2.mga8-1-1.mga8.x86_64.rpm ./kernel-desktop-latest-6.1.34-2.mga8.x86_64.rpm Preparing... ################################################################################ Installation is possible And yes --no-recommends works $ LC_ALL=C sudo urpmi --test --no-recommends ./kernel-desktop-6.1.34-2.mga8-1-1.mga8.x86_64.rpm installing kernel-desktop-6.1.34-2.mga8-1-1.mga8.x86_64.rpm from . Preparing... ################################################################################ Installation is possible And here with kernel-desktop-latest-6.1.38-3.mga8 already installed $ LC_ALL=C sudo urpmi --test ./kernel-desktop-6.1.34-2.mga8-1-1.mga8.x86_64.rpm installing kernel-desktop-6.1.34-2.mga8-1-1.mga8.x86_64.rpm from . Preparing... ################################################################################ Installation is possible So urpmi and involved packages do work as intended - though it may be confusing in this simple usage. I ordered a simple coffee from local shop, but got another coffee from another town because my order needed a cake with it that needed that other cofee... ;) Thank you for the explanations and tips!
Status: NEW => RESOLVEDResolution: (none) => INVALIDSummary: urpmi install from repo despite i give it local file => urpmi install from repo despite i give it local file - because of dependencies chain
...and if I had already had any cake on my table of any sort i would have got the local coffee i ordered.
Resolution: INVALID => FIXED
did not intend to change flag...
Resolution: FIXED => INVALID