This post, i will show the tips and trick for install package rpm in Fedora (redhat familly). For example we will install tcpdump. first we need a package tcpdump it self. my favorite package repository is in
here . after we get the package that we need. we just try to install it with this command.
rpm -ivh tcpdump-4.1.1-2.fc15.i686.rpm
As usuall we will get the error message about depedency. so we must get the depedency that needed. after we get the depedency libpcap-1.1.1-3.fc15.i686.rpm. we can execute the command with
rpm -ivh tcpdump-4.1.1-2.fc15.i686.rpm libpcap-1.1.1-3.fc15.i686.rpm
so why we need to collect the package together to be one command execution because to avoid the looping depedency.
but actualy we can list depedency it first before we install. with this command
rpm -qpR {.rpm-file}
rpm -qR {package-name}
and to check the package already install or not we can use
rpm -qi package-name
the other tips is to update package. for example we want make sure or package is ok and don't have problem so just type
rpm -Uvh --test *
after we sure about our package so we just execute
rpm -Uvh *
but if we want to delete a package that we build from package rpm. for example rsync. we can use
#rpm -qa | grep rsync
rsync-3.0.8-1.fc15.i686
after that we can unistall the package with this command
#rpm -e rsync-3.0.8-1.fc15.i686
0 comments:
Posting Komentar