[nzlug] listing installed packages
Craig Box
craig at dubculture.co.nz
Wed Oct 25 21:16:30 NZDT 2006
On Wed, 2006-10-25 at 21:03 +1300, Peter Hewett wrote:
> In rpm systems, I'm used to using
> rpm -qa
> So to check what is installed, use (for example)
> rpm -qa | grep python
> which lists all packages with "python" in the package name.
>
> Is there an equivalent in Ubuntu (Debian)?
dpkg -l does much the same as rpm -qa.
so:
dpkg -l | grep python
Note, it will list installed packaged (state 'ii') but also packages you
have previously installed and removed, but not purged (ie, config files
are still left - state 'rc');
Craig
More information about the NZLUG
mailing list