Package Management: Difference between revisions

From miki
Jump to navigation Jump to search
(New page: == Ubuntu / Debian == <source lang=bash> dpkg --get-selections # Show the list of packages installed through apt-get dpkg --get-selections | grep php # ... filtering for ...)
 
Line 2: Line 2:


<source lang=bash>
<source lang=bash>
dpkg -i <package> # Install a package from local file
dpkg --get-selections # Show the list of packages installed through apt-get
dpkg --get-selections # Show the list of packages installed through apt-get
dpkg --get-selections | grep php # ... filtering for some specific package keyword
dpkg --get-selections | grep php # ... filtering for some specific package keyword
Line 7: Line 8:
apt-cache search <keyword> # Search package cache (package name and description) for given <keyword>
apt-cache search <keyword> # Search package cache (package name and description) for given <keyword>
</source>
</source>

To add a repository, edit file <tt>/etc/apt/sources.list</tt> ou <tt>sources.list.d/</tt>, then <tt>apt-get update</tt>.

Revision as of 15:52, 5 November 2008

Ubuntu / Debian

dpkg -i <package>                   # Install a package from local file
dpkg --get-selections               # Show the list of packages installed through apt-get
dpkg --get-selections | grep php    # ... filtering for some specific package keyword
dpkg -L <package>                   # Show files delivered by a given <package>
apt-cache search <keyword>          # Search package cache (package name and description) for given <keyword>

To add a repository, edit file /etc/apt/sources.list ou sources.list.d/, then apt-get update.