Bonjour,
Je vous signale quelques commandes parfois utiles sous PCLinuxOS. Prérequis : connaître le fonctionnement des chemins de fichiers sous Linux.
Pour rechercher à quel paquet appartient une commande, par exemple, wget:
rpm -qf /usr/bin/wgetactuellement: wget-1.13.4-1pclos2011
Pour en savoir un maximum sur le wget disponible, deux commandes possibles:
rpm -qil wget (si il est installé), et apt-cache show wget (installé, ou pas).
$ rpm -qil wget
Name : wget Relocations: (not relocatable)
Version : 1.13.4 Vendor: (none)
Release : 1pclos2011 Build Date: lun. 31 oct. 2011 06:56:45 CET
Install Date: jeu. 03 nov. 2011 13:48:11 CET Build Host: thenudiebar
Group : Networking/WWW Source RPM: wget-1.13.4-1pclos2011.src.rpm
Size : 1905301 License: GPLv3
Signature : (none)
URL : http://www.gnu.org/directory/GNU/wget.html
Summary : A utility for retrieving files using the HTTP or FTP protocols
Description :
GNU Wget is a file retrieval utility which can use either the HTTP or FTP
protocols. Wget features include the ability to work in the background
while you're logged out, recursive retrieval of directories, file name
wildcard matching, remote file timestamp storage and comparison, use of
Rest with FTP servers and Range with HTTP servers to retrieve files over
slow or unstable connections, support for Proxy servers, and
configurability.
/etc/wgetrc
/usr/bin/rmold
/usr/bin/wget
/usr/share/doc/wget
/usr/share/doc/wget/AUTHORS
/usr/share/doc/wget/ChangeLog
/usr/share/doc/wget/MAILING-LIST
/usr/share/doc/wget/NEWS
/usr/share/doc/wget/README
/usr/share/info/wget.info.bz2
/usr/share/locale/be/LC_MESSAGES/wget.mo
/usr/share/locale/bg/LC_MESSAGES/wget.mo
/usr/share/locale/ca/LC_MESSAGES/wget.mo
/usr/share/locale/cs/LC_MESSAGES/wget.mo
/usr/share/locale/da/LC_MESSAGES/wget.mo
/usr/share/locale/de/LC_MESSAGES/wget.mo
/usr/share/locale/el/LC_MESSAGES/wget.mo
/usr/share/locale/en_GB/LC_MESSAGES/wget.mo
/usr/share/locale/eo/LC_MESSAGES/wget.mo
/usr/share/locale/es/LC_MESSAGES/wget.mo
/usr/share/locale/et/LC_MESSAGES/wget.mo
/usr/share/locale/eu/LC_MESSAGES/wget.mo
/usr/share/locale/fi/LC_MESSAGES/wget.mo
/usr/share/locale/fr/LC_MESSAGES/wget.mo
/usr/share/locale/ga/LC_MESSAGES/wget.mo
/usr/share/locale/gl/LC_MESSAGES/wget.mo
/usr/share/locale/he/LC_MESSAGES/wget.mo
/usr/share/locale/hr/LC_MESSAGES/wget.mo
/usr/share/locale/hu/LC_MESSAGES/wget.mo
/usr/share/locale/id/LC_MESSAGES/wget.mo
/usr/share/locale/it/LC_MESSAGES/wget.mo
/usr/share/locale/ja/LC_MESSAGES/wget.mo
/usr/share/locale/lt/LC_MESSAGES/wget.mo
/usr/share/locale/nb/LC_MESSAGES/wget.mo
/usr/share/locale/nl/LC_MESSAGES/wget.mo
/usr/share/locale/pl/LC_MESSAGES/wget.mo
/usr/share/locale/pt/LC_MESSAGES/wget.mo
/usr/share/locale/pt_BR/LC_MESSAGES/wget.mo
/usr/share/locale/ro/LC_MESSAGES/wget.mo
/usr/share/locale/ru/LC_MESSAGES/wget.mo
/usr/share/locale/sk/LC_MESSAGES/wget.mo
/usr/share/locale/sl/LC_MESSAGES/wget.mo
/usr/share/locale/sr/LC_MESSAGES/wget.mo
/usr/share/locale/sv/LC_MESSAGES/wget.mo
/usr/share/locale/tr/LC_MESSAGES/wget.mo
/usr/share/locale/uk/LC_MESSAGES/wget.mo
/usr/share/locale/vi/LC_MESSAGES/wget.mo
/usr/share/locale/zh_CN/LC_MESSAGES/wget.mo
/usr/share/locale/zh_TW/LC_MESSAGES/wget.mo
/usr/share/man/man1/wget.1.bz2
$
$ apt-cache show wget
Package: wget
Section: Networking/WWW
Installed Size: 1905301
Packager:
Version: 1.13.4-1pclos2011
Depends: info-install, info-install, libc.so.6, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.1), libc.so.6(GLIBC_2.11), libc.so.6(GLIBC_2.2), libc.so.6(GLIBC_2.2.3), libc.so.6(GLIBC_2.3), libc.so.6(GLIBC_2.3.4), libc.so.6(GLIBC_2.4), libc.so.6(GLIBC_2.8), libdl.so.2, libgcrypt.so.11, libgnutls.so.26, libgpg-error.so.0, libidn.so.11, libpthread.so.0, libpthread.so.0(GLIBC_2.0), libpthread.so.0(GLIBC_2.2), librt.so.1, librt.so.1(GLIBC_2.2), libtasn1.so.3, libz.so.1, rtld(GNU_HASH)
Provides: webclient, webfetch, wget = 1.13.4-1pclos2011, wget(x86-32) = 1.13.4-1pclos2011
Architecture: i586
Size: 455747
MD5Sum: 5f8e47d57d3663b92e6d264f9d9e2f51
Filename: wget-1.13.4-1pclos2011.i586.rpm
Summary: A utility for retrieving files using the HTTP or FTP protocols
Description:
GNU Wget is a file retrieval utility which can use either the HTTP or FTP
protocols. Wget features include the ability to work in the background
while you're logged out, recursive retrieval of directories, file name
wildcard matching, remote file timestamp storage and comparison, use of
Rest with FTP servers and Range with HTTP servers to retrieve files over
slow or unstable connections, support for Proxy servers, and
configurability.
$
Vous pouvez voir que ces deux commandes donnent des informations utiles, tout en étant fort différentes.
Maintenant, voici une paire de commandes avec rpm:
Connaître et lister dans un fichier la liste des paquets installés dans votre système:
rpm -qa > mespaquets.txtLa même chose, mais sans les numéros de version !
rpm -qa --queryformat '%{name}\n' | sort > mespaquets.txtMerci au wiki mandriva pour cette dernière. ;-)
Si un courageux contributeur veut ajouter ces informations sur le wiki,
http://wiki.pclinuxos-fr.org/doku.php il ou elle est bienvenu(e).
Ceux qui souhaiteraient consulter ce document trouveront une "bible" de la commande rpm,
ici.