110 likes | 312 Views
CSI 135. Downloading & Installing Software. Software Packages. A software package is a scripts, programs, files and directories that are needed to run some particular software application The files come as a “package” to make it easy to install and, if necessary, uninstall. Software Packages.
E N D
CSI 135 Downloading & Installing Software
Software Packages • A software package is a scripts, programs, files and directories that are needed to run some particular software application • The files come as a “package” to make it easy to install and, if necessary, uninstall
Software Packages • Software packages for Unix/Linux come in different package formats • rpm – most popular for Linux • tar • tar.gz (compressed tar)
Installation Programs • Unix/Linux systems include programs to make downloading and installing packages easy on the end user • The yum program is one such program
Installation Programs • Early versions of Red Hat did provider the rpm command, but the user had to figure out what other packages an application needed and download them • yum manages dependencies for the user
yum • You should not have to configure yum. It should be ready to go. • Its configuration file is /etc/yum.conf.
/etc/yum.conf yes?> cat /etc/yum.conf [main] cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log distroverpkg=redhat-release tolerant=1 exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 Global options Update packages only if same architecture Remove obsoleted packages
/etc/yum.conf # Note: yum-RHN-plugin doesn't honor this. metadata_expire=1h # Default. # installonly_limit = 3 # PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d
Using yum # yum update This command determines which packages need to be updated and updates them. It also takes care of any dependencies.
Using yum # yum install tcsh # yum remove tcsh You can use yum to install specific applications or to remove them when you no longer need them.
Other yum Commands command function List installed packages with available updates Removes header files and cached dependencies Remove package dependency data (reloads next time) Lists packages available on the repository Searches for word in package descriptions • check-update • clean all • clean metadata • list available • search word