|
|
Linia 1: |
Linia 1: |
− | === Lucrul cu pachete Debian ===
| + | AKAIK you've got the anwesr in one! |
− | Următoarele comenzi sunt valabile şi în [[Ubuntu]] sau alte distribuţii bazate pe Debian.
| |
− | | |
− | Cum aflu ce pachete au fost instalate pe sistem?
| |
− | dpkg --get-selections
| |
− | | |
− | Cum aflu ce fişiere a instalat un anumit pachet?
| |
− | dpkg -L pachet
| |
− | | |
− | Cum aflu care pachet a instalat un anumit fişier?
| |
− | dpkg --search fisier
| |
− | | |
− | Afişează informaţii despre un pachet .deb (de ex. descărcat din altă sursă decât cea oficială)
| |
− | dpkg-deb --info fisier.deb
| |
− | | |
− | Scriptul următor caută fişiere în lista de pachete de pe http://debian.org.
| |
− | | |
− | #!/bin/sh
| |
− | [ $BROWSER ] || BROWSER=lynx
| |
− | while [ $# -gt 0 ]; do { s="$s+$1"; shift; }; done
| |
− | url="http://packages.debian.org/search?searchon=contents&keywords=$s&mode=filename&suite=stable&arch=any"
| |
− | $BROWSER $url
| |
Versiunea de la data 14 septembrie 2011 12:30
AKAIK you've got the anwesr in one!