- /*
- paste these bash functions into .bashrc, source .bashrc
- access current and archive fedora binary and source RPMs
- */
- acc-src() {
- zsrc=${1-"pybind11"}
- rlv=${2-"35"}
- bch=${3-"releases"}
- # archives.fedoraproject.org/pub/archive/fedora
- zpref="dl.fedoraproject.org/pub"
- if [ $rlv -le "35" ]; then
- zpref="archives.fedoraproject.org/pub/archive"
- fi
- zfunc=${4-"download --source"}
- dnf --releasever=$rlv $zfunc $zsrc --setopt=tsflags=nodocs \
- --setopt=module_platform_id=platform:$rlv \
- --repofrompath=mga8rel,https://$zpref/fedora/linux/$bch/$rlv/Everything/source/tree/ \
- --disablerepo=* --enablerepo=mga8rel --exclude=gnome*,NetorkM*,iwl*firmware*,geo* ;
- }
- acc-bin() {
- zsrc=${1-"pybind11"}
- rlv=${2-"35"}
- bch=${3-"releases"}
- zpref="dl.fedoraproject.org/pub"
- if [ $rlv -le "35" ]; then
- zpref="archives.fedoraproject.org/pub/archive"
- fi
- zfunc=${4-"download "}
- dnf --releasever=$rlv $zfunc $zsrc --setopt=tsflags=nodocs \
- --setopt=module_platform_id=platform:$rlv \
- --repofrompath=mga8rel,https://$zpref/fedora/linux/$bch/$rlv/Everything/x86_64/os/ \
- --disablerepo=* --enablerepo=mga8rel --exclude=gnome*,NetorkM*,iwl*firmware*,geo* ;
- }