Created
October 7, 2023 06:14
-
-
Save belonesox/525867597939055718bc281bddfd3013 to your computer and use it in GitHub Desktop.
reproduce problem with buildep and local repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set +ex | |
toolbox rm -f test-fc39 -y || true | |
toolbox create test-fc39 --distro fedora --release 39 | |
toolbox run -c test-fc39 sudo dnf install createrepo -y | |
toolbox run -c test-fc39 sudo dnf download --downloaddir ./dir4rpms --arch=x86_64 --arch=x86_64 --arch=noarch --resolve mpv -y | |
toolbox run -c test-fc39 sudo dnf builddep --downloadonly --downloaddir ./dir4rpms mpv -y | |
toolbox run -c test-fc39 createrepo ./dir4rpms | |
toolbox run -c test-fc39 sudo bash -c 'sudo echo -e "[offline]\nname=offline\nbaseurl=file://$PWD/dir4rpms/\nenabled=0\ngpgcheck=0\nrepo_gpgcheck=0\n" > /etc/yum.repos.d/offline.repo' | |
# install ok from offline repo | |
toolbox run -c test-fc39 sudo dnf install --refresh --nogpgcheck --disablerepo="*" --enablerepo="offline" -y --allowerasing mpv | |
# cannot find mpv — «no package matched: mpv» | |
toolbox run -c test-fc39 sudo dnf builddep --refresh --nogpgcheck --disablerepo="*" --enablerepo="offline" -y --allowerasing mpv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment