Hi guys,
is it possible to run "yum/dnf update [<some pkgs>]" (from the official repos) together with some rpm file residing on my box (for example downloaded from koji)?
Example: I need such a mechanism if mutual dependencies exist between pkgs from the repo and the rpm on my box.
KInd regards
Joachim Backes
On Dec 19, 2014 1:55 AM, "Joachim Backes" joachim.backes@rhrk.uni-kl.de wrote:
Hi guys,
is it possible to run "yum/dnf update [<some pkgs>]" (from the official repos) together with some rpm file residing on my box (for example downloaded from koji)?
Yes. I do it all the time.
mkdir blah cd blah curl -Os blah.rpm & dnf upgrade *rpm
Chris
On 12/19/2014 10:16 AM, Chris Murphy wrote:
On Dec 19, 2014 1:55 AM, "Joachim Backes" <joachim.backes@rhrk.uni-kl.de mailto:joachim.backes@rhrk.uni-kl.de> wrote:
Hi guys,
is it possible to run "yum/dnf update [<some pkgs>]" (from the official repos) together with some rpm file residing on my box (for example downloaded from koji)?
Yes. I do it all the time.
mkdir blah cd blah curl -Os blah.rpm & dnf upgrade *rpm
Chris
Hi Chris,
that means I have to download *all* rpms before running update/upgrade?
I wanted to avoid this.
Kind regards
Joachim Backes
On 12/19/2014 10:31 AM, Joachim Backes wrote:
On 12/19/2014 10:16 AM, Chris Murphy wrote:
On Dec 19, 2014 1:55 AM, "Joachim Backes" <joachim.backes@rhrk.uni-kl.de mailto:joachim.backes@rhrk.uni-kl.de> wrote:
Hi guys,
is it possible to run "yum/dnf update [<some pkgs>]" (from the official repos) together with some rpm file residing on my box (for example downloaded from koji)?
Yes. I do it all the time.
that means I have to download *all* rpms before running update/upgrade?
Yes and no. If you don't know which ones you need, you need all of them. If you know which subset you need, you only need those.
I wanted to avoid this.
That's the difference between "a bunch of rpms" and a repository ;)
Ralf
On Fri, 2014-12-19 at 10:31 +0100, Joachim Backes wrote:
On 12/19/2014 10:16 AM, Chris Murphy wrote:
On Dec 19, 2014 1:55 AM, "Joachim Backes" <joachim.backes@rhrk.uni-kl.de mailto:joachim.backes@rhrk.uni-kl.de> wrote:
Hi guys,
is it possible to run "yum/dnf update [<some pkgs>]" (from the official repos) together with some rpm file residing on my box (for example downloaded from koji)?
Yes. I do it all the time.
mkdir blah cd blah curl -Os blah.rpm & dnf upgrade *rpm
Chris
Hi Chris,
that means I have to download *all* rpms before running update/upgrade?
yum will download those RPMs it needs to resolve dependencies (from the repos you have configured). Preumably dnf does the same.
poc
On Fri, Dec 19, 2014 at 2:31 AM, Joachim Backes joachim.backes@rhrk.uni-kl.de wrote:
On 12/19/2014 10:16 AM, Chris Murphy wrote:
On Dec 19, 2014 1:55 AM, "Joachim Backes" <joachim.backes@rhrk.uni-kl.de mailto:joachim.backes@rhrk.uni-kl.de> wrote:
Hi guys,
is it possible to run "yum/dnf update [<some pkgs>]" (from the official repos) together with some rpm file residing on my box (for example downloaded from koji)?
Yes. I do it all the time.
mkdir blah cd blah curl -Os blah.rpm & dnf upgrade *rpm
Chris
Hi Chris,
that means I have to download *all* rpms before running update/upgrade?
Pretty sure it finds dependencies as long as they're in an enabled repo. For example if you get a kernel off koji that isn't in any repo yet, and you only download the kernel file, the command can't go get kernel-core and kernel-modules, so in that case yes you have to have all the rpms downloaded.
On 12/19/2014 09:55 AM, Joachim Backes wrote:
Hi guys,
is it possible to run "yum/dnf update [<some pkgs>]" (from the official repos) together with some rpm file residing on my box (for example downloaded from koji)?
Yes. yum/dnf only care about dependencies between installed and to-be installed packages from repos.
I.e. yum/dnf won't notice you have a locally built package installed until some dependency breaks.
Example: I need such a mechanism if mutual dependencies exist between pkgs from the repo and the rpm on my box.
In general, I'd recommend to setup a local repo and to pull packages from there, instead.
Ralf
On Fri, 2014-12-19 at 09:55 +0100, Joachim Backes wrote:
Hi guys,
is it possible to run "yum/dnf update [<some pkgs>]" (from the official repos) together with some rpm file residing on my box (for example downloaded from koji)?
Example: I need such a mechanism if mutual dependencies exist between pkgs from the repo and the rpm on my box.
KInd regards
Joachim Backes
Fedora release 21 (Twenty One) Kernel-3.17.6-300.fc21.x86_64
Joachim Backes joachim.backes@rhrk.uni-kl.de https://www-user.rhrk.uni-kl.de/~backes
Hi I use the following method to achieve this - there may be a better method
I have a local-20-update repo which I populate with "update" rpms and then run createrepo
When I run yum, the "cost=1" setting forces this repo to be used first If an rpm or dependency is required that is not available locally it will be down loaded from the "normal" remote repo
Each of my machines are set to pick up "updates" locally if possible
ja@paxos yum.repos.d 4$ cat local-20-update.repo [local-20-update] name=Local Fedora $releasever - $basearch - Updates cost=1 baseurl=file:///global/local_repos/20/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
John
PS I also have a script that picks up "updates" and hence only one download is required for several machines