September 2008

Common Linux commands and syntax

Posted by Ryan on September 28, 2008 in Linux, Solaris

A list of commands and their syntax, some of which for some reason, seem to escape me only when I need it.
tar -cvf <archive name> <source directory> (create an archive from a directory)
rsync -auEv <source directory> <destination directory> (copy files locally from one location to another keeping all permissions and modification dates and Executibility)
rsync -auvEe [...]

CentOS 4 Repository list

Posted by Ryan on September 23, 2008 in Linux

Lists the contents of a CentOS 4 base repository.  I’m listing this because it has been a pain in the past to find a list of repositories for CentOS/RHEL.  Also, if you need one for Centos 5 or 5.1, just change the 4’s to 5’s or 5.1’s in the output below.
CentOS 4
“Centos-Base.repo”
[base]
name=CentOS-$releasever – Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#released updates
[updates]
name=CentOS-$releasever [...]