################################################################## #(in case it is of use to anyone) for my own use i cooked up a way #to easily invoke yum or smart, with any of several repo sets, #for CentOS or fedora, keeping all repo defs in a single repo file. #limitation: smart doesn't use mirrorlists #(by all means let me know if a better way exists): # #examples: # yu -y update #yum update using dist repos only # yud -y install smart #use yum to install smart from dag repo # sma #smart shell with all extra repos # update #don't confuse smart update with yum update # query --show-channels alsa-dr* #nice feature smart has that yum doesn't # #warning: when exiting smart and it saves its cache, it gobbles lots of memory esp with many repos; running "sma" (below, all fedora repos) it thrashed for hours trying to use 878mb virtual with "only" 471mb resident in my 512mb #which dist am i running? if [ -s /etc/redhat-release ];then redrel=$(| /etc/smart/channels/yumconf.channel && yes|smart config --set remove-packages=false && LC_ALL=C smart --shell;} #bash arrays define repo sets, / parsed by awk/sed above: #centos main repos yeb=( /CentOS_base /CentOS_update /CentOS_addons /CentOS_extras /CentOS_contrib /gnucash-e /trixbox ) #plus jpackage yep=( /CentOS_plus /trixboxbeta /jpackage16-e-free ) #plus dag & kderh yed=( /dag-e /kderh-e-stable ) #the rest yea=( /dries-e /kderh-e-testing /kderh-e-unstable /at-sci-release /at-sci-updates /at-e-base /at-e-good /at-e-stable /at-e-testing /at-e-bleeding /at-e-obsoleted /at-e-release /at-e-updates /at-e-other /jpackage16-e-nonfree /jpackage16-e-devel ) #disable temporarily yey=( ) #disable indefinitely yex=( /pyvault-e /wb_base /wb_updates-released /wb_Extras /wb_Debuginfo /Lineox_base /Lineox_update ) #fedora main repos yfb=( /f-core /f-extras /f-updates ) #plus jpackage yfp=( /jpackage16-f-free ) #plus at & kderh yfd=( /kderh-f-stable /at-f-stable ) #the rest yfa=( /f-devel /f-extras-devel /f-updates-testing /dries-f /kderh-f-testing /kderh-f-unstable /at-f-base /at-f-good /at-f-other /at-f-testing /at-f-bleeding /at-f-obsoleted /freshrpms /freshr-core /jpackage16-f-nonfree /jpackage16-f-devel ) #disable temporarily yfy=( /f-core-source /f-core-debuginfo /f-extras-source /f-extras-debuginfo /f-updates-source /f-updates-debuginfo /f-devel-source /f-devel-debuginfo /f-extras-devel-source /f-extras-devel-debuginfo /f-updates-testing-source /f-updates-testing-debuginfo ) #disable indefinitely yfx=( /dag-f /dag-f3 /dag-f5 /dries-f3 /dries-f5 /freshr-updates /newrpms /nrpms-production /nrpms-testing /nrpms-debug /nrpms-experimental /nrpms-graveyard /pyvault-f ) #"plus", either centos or fedora ygp=( /jpackage16-g-free /jpackage16-g-nonfree ) ygd=( /kderh-a-stable ) yga=( /kderh-a-testing /kderh-a-unstable /jpackage16-g-devel ) ygy=( ) ygx=( /egroupware )