Hey,
I remeber back aways a thread about sharing our scripts and conf files after install and as the thread starter sorry this is going to be long. Well here is a custom Bash Shell Script. It will install yum (for those who don't have it). Update yum and installed packages , List packages and and remove packages. Pretty much it will do all the jobs of installing and maintaining software that yum can do.
If you run into any errors or bugs email me or pm me.
Just copy the code to a text file and namethe file : yummenu; chmod to 555 and run as root (so functions only work as root) in a terminal or ssh session. To run it from a command prompt type:
$./yummenu
from the same dir as yummenu. I will paste the code for it in the next post.
Here is a copy of my yum.conf (i'm running FC2):
Code:
# $Id: yum-fd.conf 378 2004-04-30 16:33:52Z dude $
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
gpgcheck=1
tolerant=1
exactarch=1
[core]
name=Fedora Linux $releasever - $basearch - core
baseurl=h*tp://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/core
[core alt]
name=Secsup.org $releasever - $basearch - core
baseurl=h*tp://redhat.secsup.org/fedora/core/2/i386/os/
[updates]
name=Fedora Linux $releasever - $basearch - updates
baseurl=h*tp://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/updates
[update alt]
name=Secsup.org $releasever - $basearch - core
baseurl=h*tp://redhat.secsup.org/fedora/core/updates/2/i386/
[freshrpms]
name=Fedora Linux $releasever - $basearch - freshrpms
baseurl=h*tp://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms
#[tupdates]
#name=Fedora Linux $releasever - $basearch - testing updates
#baseurl=h*tp://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/tupdates
[livna-stable]
name=Livna.org Fedora Compatible Packages (stable)
baseurl=ht*p://rpm.livna.org/fedora/$releasever/$basearch/yum/stable
gpgcheck=1
[FedoraUS]
name=Fedora US $releasever - $basearch - Latest Packages
baseurl=ht*p://download.fedora.us/fedora/fedora/2/i386/SRPMS.os/
[newrpms.sunsite.dk]
name=Fedora Core 2 NewRPMS.sunsite.dk
baseurl=ht*p://newrpms.sunsite.dk/apt/redhat/en/i386/fc2
[dag]
name=Dag RPM Repository for Fedora Core 2
baseurl=ht*p://apt.sw.be/fedora/$releasever/en/$basearch/dag
[dries]
name=Extra Fedora rpms dries - $releasever - $basearch
baseurl=ht*p://dries.studentenweb.org/yum/fedora/linux/$releasever/$basearch/dries
Please replace ht*p or h*tp with http