I tried the deprecated command yum and it works:
yum-deprecated -y repository-packages MYREPO update
yum-deprecated -y repo-pkgs MYREPO update

Also this command is right solution, if all packages have same prefix (but my packages doesnt have same prefix, and I don't want to hardcode all package names there)
dnf --enablerepo=MYREPO update $(sudo dnf list installed | grep PREFIX_OF_MY_PACKAGES* | cut -f1 -d " ")


I can use
yum-deprecated, buts iits somehow awkward :)

After update to  dnf-1.1.0-2.fc22.noarch, this same command
dnf -y repository-packages MYREPO update
takes 5 minutes or more, and update is just few kilobytes.

Just want to update all installed packages from my repository with DNF  (I dont wan't to update system repos (fedora, updates, etc).


Thanks
Zelja


On Fri, Aug 14, 2015 at 10:12 AM, Zelja Tux <zeljatux@gmail.com> wrote:
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@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