- # rpm -qa |more (will show all your application installed in your machine)
- # rpm -qa |less (less is more than more)
- # rpm -qa | grep application (or egrep, show the version of the application)
- # rpm -qi packagename (will show the informations about that package)
- # rpm -ql packagename |more (will show in which directory the files of the package are saved)
- # rpm -e filename (erase the file; you can type all the filenames separate with a comma)
- # rpm -e software_name (uninstall)
- # rpm -ivh mtools-3.9.7-3.i386.rpm (install the application)
- # rpm -Uhv (can install or upgrade, not to use when you don't want to overwrite the old installation)
- # rpm --test -Uhv packagename-packageversion no-buildno.CPU.rpm (for testing without installing)
- # rpm --rebuilddb (when you have made changes to an application, you have to rebuild the database stored in /var/lib/rpm or /var/lib/dpkg for Debian)
for application installing in Debian:
- #apt-get update (update the system)
- #apt-get install application
- #apt-get remove application
- #apt-get --purge remove application
- #apt-get upgrade application
- #apt-get dist-upgrade application
- #apt-cache search word
- #apt-cache show word
- #dpkg application.deb (install .deb package)
- #dpkg -i application.deb (install package .deb)
- #dpkg -r (remove)
- #dpkg -P (purge)
- #dpkg -L application (show info about the application installed by apt-get install)
- #dpkg -l (show all the packages installed in debian)
沒有留言:
張貼留言