get fedora bin/src RPMs

From PryMar56, 1 Year ago, written in Plain Text, viewed 146 times.
URL https://pb.dynavirt.com/view/e352e0f1 Embed
Download Paste or View Raw
  1.  
  2. /*
  3.    paste these bash functions into .bashrc, source .bashrc
  4.    access current and archive fedora binary and source RPMs
  5. */
  6.  
  7. acc-src() {
  8.         zsrc=${1-"pybind11"}
  9.         rlv=${2-"35"}
  10.         bch=${3-"releases"}
  11.         # archives.fedoraproject.org/pub/archive/fedora
  12.         zpref="dl.fedoraproject.org/pub"
  13.         if [ $rlv -le "35" ]; then
  14.         zpref="archives.fedoraproject.org/pub/archive"
  15.         fi
  16.         zfunc=${4-"download --source"}
  17.         dnf --releasever=$rlv $zfunc $zsrc --setopt=tsflags=nodocs \
  18.          --setopt=module_platform_id=platform:$rlv \
  19.          --repofrompath=mga8rel,https://$zpref/fedora/linux/$bch/$rlv/Everything/source/tree/ \
  20.          --disablerepo=* --enablerepo=mga8rel --exclude=gnome*,NetorkM*,iwl*firmware*,geo* ;
  21. }
  22. acc-bin() {
  23.         zsrc=${1-"pybind11"}
  24.         rlv=${2-"35"}
  25.         bch=${3-"releases"}
  26.         zpref="dl.fedoraproject.org/pub"
  27.         if [ $rlv -le "35" ]; then
  28.         zpref="archives.fedoraproject.org/pub/archive"
  29.         fi
  30.         zfunc=${4-"download "}
  31.         dnf --releasever=$rlv $zfunc $zsrc --setopt=tsflags=nodocs \
  32.          --setopt=module_platform_id=platform:$rlv \
  33.          --repofrompath=mga8rel,https://$zpref/fedora/linux/$bch/$rlv/Everything/x86_64/os/ \
  34.          --disablerepo=* --enablerepo=mga8rel --exclude=gnome*,NetorkM*,iwl*firmware*,geo* ;
  35. }
  36.  

Reply to "get fedora bin/src RPMs"

Here you can reply to the paste above

captcha