RPM, Yum, and Tar
RPM, Yum, and Tar
-R package_name
display what package is required to be installed
beforehand? Some packages depend on capabilities that
are provided by other packages. If these dependencies
are not respected, rpm will not let you install the
package.
Example: rpm qR grub-0.97-33
Upgrading packages
rpm U package|
Used to upgrade an existing package: installs current version
of package and erases all previous versions.
Installing packages
yum install package_name
Removing packages
yum remove package_name
The tape archive tool
Originally was used for backing up to tape
drives needed to be serial
No compression
Think of it as taking many files (and
directories) and sticking them together end-
to-end
tar <operation> [options] <destination> <source>
Example: tar cf stuff.tar ./source/*
Example: tar xvf stuff.tar
-c: Create Operations
-r: append
-x: extract
-t: list
-f: file(s) Options
-p: preserve permissions
-v: verbose
-z: gzip