Petit mémo sur apt-get power inside

À la demande de m’sieur Fred ! Le voici !! juste un petit mémo sur apt pour combler les trous de mémoire sur apt-get power inside !!! Ha Ha

Chercher un paquet : apt-cache search

 

cdulux:/home/wimpy# apt-cache search apache2
gforge-web-apache - transition package to gforge-web-apache2
gforge-web-apache2 - collaborative development tool - web part (using Apache)
apache2-mpm-prefork - Apache HTTP Server - traditional non-threaded model
apache2 - Apache HTTP Server metapackage
apache2-utils - utility programs for webservers
apache2.2-common - Apache HTTP Server common files
libapache2-mod-php5 - server-side, HTML-embedded scripting language (Apache 2 module)

Avoir des informations sur un paquet : apt-cache show

 

cdulux:/home/wimpy# apt-cache show apache2
Package: apache2
Status: install ok installed
Priority: optional
Section: web
Installed-Size: 100
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Architecture: all
Version: 2.2.11-2
Depends: apache2-mpm-worker (>= 2.2.11-2) | apache2-mpm-prefork (>= 2.2.11-2) | apache2-mpm-event (>= 2.2.11-2)
Description: Apache HTTP Server metapackage
The Apache Software Foundation's goal is to build a secure, efficient and
extensible HTTP server as standards-compliant open source software. The
result has long been the number one web server on the Internet.
.
It features support for HTTPS, virtual hosting, CGI, SSI, IPv6, easy
scripting and database integration, request/response filtering, many
flexible authentication schemes, and more.
Homepage: http://httpd.apache.org/

Avoir des infos sur la version d’un paquet : apt-cache policy

 

cdulux:/home/wimpy# apt-cache policy apache2
apache2:
Installé : 2.2.11-2
Candidat : 2.2.11-2
Table de version :
*** 2.2.11-2 0
100 /var/lib/dpkg/status

Avoir les dépendances d’un paquet : apt-cache depends

 

cdulux:/home/wimpy# apt-cache depends apache2
apache2
|Dépend:
|Dépend: apache2-mpm-prefork
Dépend:

Savoir de quel paquet provient un fichier

 

Gâce à DPKG !! :)

 

cdulux:/home/wimpy# dpkg -S /usr/share/apache2/build/envvars-std
apache2.2-common: /usr/share/apache2/build/envvars-std

 

Sauvegarder les paquets installés et les ré-installer sur une autre machine

Cette fois-ci, nous nous servirons d’aptitude.

Sur le PC source, faite :

aptitude search '~i !~M' -F '%p' > mes_paquets

 

Ensuite sur le PC cible, transferez le fichier généré puis faites  :

aptitude install `cat mes_paquets`

 

et voilou…

Il existe bien une méthode avec dpkg –get-selections & dpkg –set-selections mais elle ne fonctionne plus chez moi…

 

 


Article lu 2001 fois

One comment

  1. […] Voir cette article : petit-memo-sur-apt-get-power-inside […]

Laisser un commentaire