Last active
July 26, 2021 03:12
-
-
Save MarkZhangTW/36a4ffc2d47826759ccbf2def00efd06 to your computer and use it in GitHub Desktop.
Download RPM files from yum/dnf
This file contains hidden or 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
#!/usr/bin/env bash | |
for rpm in "$@"; do | |
mkdir -p $rpm | |
sudo yum install --downloadonly --downloaddir=$rpm -y $rpm | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment