DNF - Update packages from specific repository with dependencies

Zelja Tux zeljatux at gmail.com
Fri Aug 14 08:12:18 UTC 2015


That command works, but it takes a VERY LONG time to complete (maybe 5mins).
dnf -y repository-packages MYREPO upgrade

Earlier version of DNF (maybe few weeks ago), throw these messages while
doing upgrade:
Package SOMEPACKAGE1 not installed, cannot update it
Package SOMEPACKAGE2 not installed, cannot update it
Package SOMEPACKAGE3 not installed, cannot update it
Package SOMEPACKAGE4 not installed, cannot update it


I assume that the problem could be in the fact that DNF is trying to update
ALL packages from my custom repository MYREPO, but on my PC, I use only few
of those packages (have installed) just a few packages.

2015-08-13 20:53 GMT+02:00 Jan Zelený <jzeleny at redhat.com>:

> On 12. 8. 2015 at 15:11:38, Zelja Tux wrote:
> > Hi,
> >
> > How to only install updates from a specific repository with DNF (and
> their
> > dependencies from other repositories)?
> > Is there a option to upgrade only packages from specific repository (and
> > their dependencies from other repositories)
> >
> > I use following on Fedora 22 x86_64:
> >
> > dnf -y repo-pkgs MYREPO upgrade
> >
> > Upgrade is successfull, but it takes VERY LONG time to complete (5mins).
> >
> >
> > If I use following:
> > dnf -y --disablerepo=\* --enablerepo=MYREPO upgrade
> >
> > Upgrade fails with:
> > Skipping packages with broken dependencies:
> >
> > Because I have one package on MYREPO that requires (have dependency)
> > package from other repo (fedora repo).
> >
> > Yum command worked fine.
> > yum -y repo-pkgs MYREPO update
> >
> > Does anyone have a clue.
>
> Does
>
> dnf -y repository-packages MYREPO upgrade
>
> not work?
>
> Jan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20150814/b97379f3/attachment.html>


More information about the devel mailing list