From 5e33e45dbdc80167fd6aca7bc17113b97ac2ea86 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 13 Aug 2020 07:55:28 -0400 Subject: [PATCH] Notes on a strategy to retrieve the appropriate src.rpms --- genesis/buildgenesis.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/genesis/buildgenesis.sh b/genesis/buildgenesis.sh index cb984db0..f675f415 100644 --- a/genesis/buildgenesis.sh +++ b/genesis/buildgenesis.sh @@ -14,5 +14,10 @@ rm -rf /usr/lib/dracut/modules.d/97genesis cd - # getting src rpms would be nice, but centos isn't consistent.. # skipcpio | xzcat | cpio -dumiv -# dnf download --source $(rpm -qf $(find . -type f | sed -e 's/^.//') |sort -u|grep -v 'not owned') +# rpm -qf $(find . -type f | sed -e 's/^.//') |sort -u|grep -v 'not owned' > rpmlist +# for i in $(cat rpmlist); do rpm -qi $i|grep Source; done |awk '{print $4}'|sort -u > srcrpmlist +# for i in $(cat ../srcrpmlist); do wget http://vault.centos.org/8.2.2004/BaseOS/Source/SPackages/$i; done +# http://vault.centos.org/8.2.2004/AppStream/Source/SPackages/$i + +