Created
October 11, 2023 09:58
-
-
Save belonesox/0ff847cb441b13f26c697ad0f07c7d03 to your computer and use it in GitHub Desktop.
reproduce-resolve.sh
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 | |
rm -rf ./dir4rpms | |
toolbox rm -f test-fc39 -y || true | |
SETPACKAGES="libtool rpm-build" | |
#dnf-utils rpm-build | |
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 $SETPACKAGES -y | |
#Does not work either | |
#toolbox run -c test-fc39 sudo dnf download --downloaddir ./dir4rpms --arch=x86_64 --arch=x86_64 --arch=noarch --resolve libtool --resolve rpm-build -y | |
toolbox run -c test-fc39 sudo 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' | |
toolbox run -c test-fc39 sudo dnf install --refresh --nogpgcheck --disablerepo="*" --enablerepo="offline" -y --allowerasing $SETPACKAGES |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment