#apt-get update
Upgrade all package in system
#apt-get upgrade
To install package
#apt-get install foo
To remove package
#apt-get remove foo
-remove configuration on the system
#apt-get --purge remove for
To upgrade all packages on the system
#apt-get dist-upgrade
apt-cache : query package list tool
To find packages whose description contain word:
#apt-cache search word
To print the detailed information of a package:
#apt-cache show package
To print the packages a given package depends on:
#apt-cache depends package
#To print detailed information of the versions available for a package and the packages
that reverse-depends on it:
apt-cache showpkg package
PHP package
php5
php5-cgi
php5-cli
php5-curl
php4-common
php5-gd
php5-imagick
php5-memcache
php5-mysql
php5-xcache
libapache2-mod-fcgid
nfs-kernel-server
Apache package
apache2
apache2-mpm-worker
apache2-utils
apache2.2-bin
apache2.2-common
libapache2-mod-fcgid
Apache Ubuntu vs Apache gentoo
add user apache with uid81 (gentoo)
#useradd -r -u 81 apache
edit /etc/apache2/envvars to run apache with user apache
Reference :
A Debian Package Primer: Part One
Aptitude :part two
Ubuntu Community Doc.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น