
consiglio un -> man rpm ehehe si lo consiglio vivamente
cmq comandi base :
rpm -i nomefile.rpm // installa
rpm -e nomefile.rpm // cancella
rpm -Uvh nomefile.rpm // upgrade
rpm -i --force --nodeps // forza e non calcola le dipendenze per l'installazione
rpm -e --force --nodeps // forza e non calcola le dipendenze per l'eliminazione
Per altri comandi dare il comando rpm --help
-*-*-*-*-*-*-*-* Leggere -*-*-*-*-*-*-*-*
RPM version 4.0
Copyright (C) 1998 - Red Hat Software
This may be freely redistributed under the terms of the GNU GPL
Usage:
--help - print this message
--version - print the version of rpm being used
All modes support the following arguments:
--define ' ' - define macro with value
--eval '+' - print the expansion of macro to stdout
--pipe - send stdout to
--rcfile - use instead of /etc/rpmrc and $HOME/.rpmrc
--showrc - display final rpmrc and macro configuration
-v - be a little more verbose
-vv - be incredibly verbose (for debugging)
Install, upgrade and query (with -p) allow URL's to be used in place
of file names as well as the following options:
--ftpproxy - hostname or IP of ftp proxy
--ftpport - port number of ftp server (or proxy)
--httpproxy - hostname or IP of http proxy
--httpport - port number of http server (or proxy)
-q, --query - query mode
--dbpath - use as the directory for the database
--queryformat - use as the header format (implies --info)
--root - use as the top level directory
Package specification options:
-a, --all - query all packages
-f + - query package owning
-p + - query (uninstalled) package
--triggeredby - query packages triggered by
--whatprovides - query packages which provide capability
--whatrequires - query packages which require capability
Information selection options:
-i, --info - display package information
--changelog - display the package's change log
-l - display package file list
-s - show file states (implies -l)
-d - list only documentation files (implies -l)
-c - list only configuration files (implies -l)
--dump - show all verifiable information for each file
(must be used with -l, -c, or -d)
--provides - list capabilities package provides
-R, --requires - list package dependencies
--scripts - print the various [un]install scripts
--triggers - show the trigger scripts contained in the package
-V, -y, --verify - verify a package installation using the same same
package specification options as -q
--dbpath - use as the directory for the database
--root - use as the top level directory
--nodeps - do not verify package dependencies
--nomd5 - do not verify file md5 checksums
--nofiles - do not verify file attributes
--querytags - list the tags that can be used in a query format
--install
-i - install package
--excludepath - skip files in path
--relocate = - relocate files from to
--badreloc - relocate files in non-relocateable package
--prefix - relocate the package to , if relocatable
--dbpath - use as the directory for the database
--excludedocs - do not install documentation
--force - short hand for --replacepkgs --replacefiles
-h, --hash - print hash marks as package installs (good with
-v)
--allfiles - install all files, even configurations which
might otherwise be skipped
--ignorearch - don't verify package architecture
--ignoresize - don't check disk space before installing
--ignoreos - don't verify package operating system
--includedocs - install documentation
--justdb - update the database, but do not modify the
filesystem
--nodeps - do not verify package dependencies
--noorder - do not reorder package installation to satisfy
dependencies
--noscripts - don't execute any installation scripts
--notriggers - don't execute any scripts triggered by this
package
--percent - print percentages as package installs
--replacefiles - install even if the package replaces installed
files
--replacepkgs - reinstall if the package is already present
--root - use as the top level directory
--test - don't install, but tell if it would work or not
--upgrade
-U - upgrade package (same options as --install, plus)
--oldpackage - upgrade to an old version of the package (--force
on upgrades does this automatically)
--erase
-e - erase (uninstall) package
--allmatches - remove all packages which match
(normally an error is generated if
specified multiple packages)
--dbpath - use as the directory for the database
--justdb - update the database, but do not modify the
filesystem
--nodeps - do not verify package dependencies
--noorder - do not reorder package installation to satisfy
dependencies
--noscripts - do not execute any package specific scripts
--notriggers - don't execute any scripts triggered by this
package
--root - use as the top level directory
-b
-t - build package, where is one of:
p - prep (unpack sources and apply patches)
l - list check (do some cursory checks on %files)
c - compile (prep and compile)
i - install (prep, compile, install)
b - binary package (prep, compile, install, package)
a - bin/src package (prep, compile, install, package)
--short-circuit - skip straight to specified stage (only for c,i)
--clean - remove build tree when done
--rmsource - remove sources when done
--rmspec - remove spec file when done
--sign - generate PGP/GPG signature
--buildroot - use as the build root
--target=+ - build the packages for the build targets
platform1...platformN.
--nobuild - do not execute any stages
--timecheck - set the time check to seconds (0 disables)
--rebuild - install source package, build binary package and
remove spec file, sources, patches, and icons.
--recompile - like --rebuild, but don't build any package
--resign + - sign a package (discard current signature)
--addsign + - add a signature to a package
--checksig +
-K + - verify package signature
--nopgp - skip any PGP signatures
--nogpg - skip any GPG signatures
--nomd5 - skip any MD5 signatures
--initdb - make sure a valid database exists
--rebuilddb - rebuild database from existing database
--dbpath - use as the directory for the database
--root - use as the top level directory
--setperms - set the file permissions to those in the package
database using the same package specification
options as -q
--setugids - set the file owner and group to those in the
package database using the same package
specification options as -q
|