RPM - Uninstall / Erase
● If you want to see the files that are being removed, you can use the -vv option.
# rpm -evv tuxpaint
● This can sometimes lead to a bunch of filenames flying down the screen. So,
you might want to pipe the output to less or to a file for you to review later.
● You can also override some problems that might arise with a simple unistall.
● You may run into a dependcy problem if you try to remove a package that
others are relying on.
# rpm -evv --nodeps tuxpaint
● The above option will uninstall the package without checking for dependencies.
# rpm -evv --noscipts tuxpaint
● The above command will unistall the package without running and preunistall
or postunistall scripts.
# rpm -evv --notriggers tuxpaint
● The above command will uninstall the package without executing scripts that
are triggered by removing the package.
RPM - Query
● You can use the query (-q) option to get information about the package.
● Here are some options you can use with query:
○ -qa : lists all installed packages.
○ -qf file : Lists the packages that owns file.
○ -qi package : Lists lots of information about the package.
○ -qR package : Lists components (such as libraries and commands) that
package depends on.
○ -ql package : Lists all the files contained in the package.
○ -qd package : Lists all documentation files that come in the package.
○ -qc package : Lists all configuration files that come in package.
● Here are some examples: (You might want to pipe these to a more command)
# rpm -qa
# rpm -qi tuxpaint
# rpm -ql tuxpaint
# rpm -qi tuxpaint
# rpm -qR tuxpaint
● Note that I am only using the package name here, and not the entire name of the RPM file.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment