Installing & Deleting Software Packages :
—————————————
Installing Package :
——————
To Installing an rpm software package, use the following command with -i option.
Syn :
—
rpm -i package_file_name
Options :
——-
-i –> Install a Package
-v –> Verbose for a nicer display
-h –> Print hash marks as the package archive is unpacked
Where package_file_name specifies the name of the file that contains the package you want to install.
Cmd :
—
rpm -i gnorpm-0.9-10.i386.rpm
gnome-linuxconf-0.23-1.i386.rpm
Administrators like to include -v & -h Flags causes the command to print status information as its excutes.
Ex :
—
#rpm -ivh gnorom-0.-10.i386.rpm
Press Enter & Type
gnome-linuxconf-0.23-1.386.rpm
gnorpm
###############
gnome-linuxconf
###############
RPM Arguments :
————-
1) –force
2) –nodeps
3) –replacefiles
Ex :
—
rpm -i –nodeps gnorpm-0.-10.i386
Press Enter
gnome -linuxconf-0.23-1.i386.rpm
Deleting Packages :
—————–
To Remove an installed package, issue a command
Cmd :
—
rpm -e package_name
Performing Updates & Fixes :
————————–
RPM makes it easy to install new versions of package. issue a command
Cmd :
—
rpm -uvh package_file_name
Where package file name is the name of the file containing the new version of the package
Ex :
—
rpm -Fvh gnorpm-0.9-10.i386.rpm
Identifying Installed Packages :
——————————
RPM the version and build numbers of an installed packages, issue a command
Cmd :
—
rpm -q package_name
Ex :
—
gnorpm-0.9-10
The version and build number of each installed package.
Cmd :
—
rpm -qa
Determining File Ownership :
————————–
RPM to learn which package, owns a particular file, issue a command
Syn :
—
rpm -qf filename
Cmd :
—
rpm -qf /etc/initab
initscripts-4.16-1