0% found this document useful (0 votes)
39 views1 page

Unix

The document discusses the Unix/Linux filesystem hierarchy and the rpm command for working with packages. The Unix/Linux filesystem has a root directory that controls all subdirectories and files in a hierarchical structure. The rpm command allows users to install, upgrade, erase/remove, and query packages and their files, dependencies, and configuration files. Syntax examples are provided for common rpm operations like installing, upgrading, querying, and removing packages.

Uploaded by

kukukukokila
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views1 page

Unix

The document discusses the Unix/Linux filesystem hierarchy and the rpm command for working with packages. The Unix/Linux filesystem has a root directory that controls all subdirectories and files in a hierarchical structure. The rpm command allows users to install, upgrade, erase/remove, and query packages and their files, dependencies, and configuration files. Syntax examples are provided for common rpm operations like installing, upgrading, querying, and removing packages.

Uploaded by

kukukukokila
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 1

http://www.cis.rit.edu/class/simg211/unixintro/Filesystem.html http://www.ee.surrey.ac.uk/Teaching/Unix/unix8.html http://sl-workstations.web.cern.ch/sl-workstations/documentation/SAGpart-4.html http://www.idevelopment.

info/ (linux) Unix is a hierarchy structure root is main directory, it controls all sub-directories and files Syntax rpm -ivh {rpm-file} Description Install the package Example(s) rpm -ivh mozilla-mail-1.7.517.i586.rpm rpm -ivh --test mozilla-mail1.7.5-17.i586.rpm rpm -Uvh mozilla-mail-1.7.612.i586.rpm rpm -Uvh --test mozilla-mail1.7.6-12.i586.rpm rpm -ev mozilla-mail rpm -ev --nodeps mozilla-mail

rpm -Uvh {rpm-file}

Upgrade package Erase/remove/ an installed package Erase/remove/ an installed package without checking for dependencies

rpm -ev {package} rpm -ev --nodeps {package} rpm -qa rpm -qi {package}

rpm -qf {/path/to/file} rpm -qc {pacakge-name} rpm -qcf {/path/to/file} rpm -qa --last rpm -qpR {.rpm-file} rpm -qR {package}

Display list all installed rpm -qa packages rpm -qa | less Display installed information along with package version and rpm -qi mozilla-mail short description Find out what package a file rpm -qf /etc/passwd belongs to i.e. find what package rpm -qf /bin/bash owns the file Display list of configuration rpm -qc httpd file(s) for a package Display list of configuration files rpm -qcf /usr/X11R6/bin/xeyes for a command Display list of all recently rpm -qa --last installed RPMs rpm -qa --last | less rpm -qpR mediawiki-1.4rc1Find out what dependencies a 4.i586.rpm rpm file has rpm -qR bash

You might also like