Binary feeds: how are we supposed to use "dnf upgrade"?
Greetings,
I'm making binary package update tests on Nanbield. No problem with an ipk package feed. If I remember correctly:
Quoted 2 lines
opkg update
opkg upgrade
I'm running this from a Nanbield 4.3.1 image, using feeds generated on another machine with the tip of the "nanbield" branch.
If I switch toPACKAGE_CLASSES = "package_rpm"
If can't seem to be able to do the same thing:
Quoted 1 line
dnf upgrade
OE Remote Repo:8000 0.0 B/s | 0 B 00:00
Error: Failed to download metadata for repo 'oe-remote-repo8000': Cannot download repomd.xml: Empty mirrorlist and no basepath specified!
Ignoring repositories: oe-remote-repo8000
Dependencies resolved.
Nothing to do.
Complete!
My http server doesn't even receive any request!
Here are the contents of /etc/yum.repos.d/oe-remote-repo8000.repo:
[oe-remote-repo8000]
name=OE Remote Repo:8000
baseurl=192.168.1.34:8000
gpgcheck=0
However the following command works:
Quoted 1 line
On Fedora 39, I can just run "dnf upgrade" and everything works. I'm starting to suspect that something is missing in the rpm related files we generate.
At least, this shows the usefulness of implementing such checks (working on these).
Cheers
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Note the existing tests in meta/lib/oeqa/runtime/cases/dnf.py - the do use a remote http repo to install a file, but the repo configuration is supplied on command line with --repofrompath, and upgrading is not tested.
Alex
Quoted 68 lines · Michael Opdenacker via lists.yoctoproject.org
Greetings,
I'm making binary package update tests on Nanbield. No problem with an ipk package feed. If I remember correctly:
Quoted 2 lines
opkg update
opkg upgradeI'm running this from a Nanbield 4.3.1 image, using feeds generated on another machine with the tip of the "nanbield" branch.
If I switch to
PACKAGE_CLASSES= "package_rpm"If can't seem to be able to do the same thing:
Quoted 1 line
dnf upgrade
OE Remote Repo:8000 0.0 B/s | 0 B 00:00
Error: Failed to download metadata for repo 'oe-remote-repo8000': Cannot download repomd.xml: Empty mirrorlist and no basepath specified!
Ignoring repositories: oe-remote-repo8000
Dependencies resolved.
Nothing to do.
Complete!
My http server doesn't even receive any request!
Here are the contents of
/etc/yum.repos.d/oe-remote-repo8000.repo:[oe-remote-repo8000]
name=OE Remote Repo:8000
baseurl=192.168.1.34:8000
gpgcheck=0However the following command works:
Quoted 1 line
On Fedora 39, I can just run "dnf upgrade" and everything works. I'm starting to suspect that something is missing in the rpm related files we generate.
At least, this shows the usefulness of implementing such checks (working on these).
Cheers
Michael.--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62136): https://lists.yoctoproject.org/g/yocto/message/62136
Mute This Topic: https://lists.yoctoproject.org/mt/103682993/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hi Alex,
Quoted 4 lines · Alexander Kanavin
Note the existing tests in
meta/lib/oeqa/runtime/cases/dnf.py- the do use a remote http repo to install a file, but the repo configuration is supplied on command line with --repofrompath, and upgrading is not tested.
Right, that's part of our plans to add such tests, and fix issues if necessary. Cheers
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com