우분투에서 설치된 패키지 목록을 확인하기 위해서는 다음과 같은 명령어를 사용하면 된다.
그럼 쫙 나온다.
특정 패키지만 보려면
dpkg -l squid*
뒤에 이름을 적으면 된다. 와일드카드도 사용 가능.
The possible value for the first character. The first character signifies the desired state, like we (or some user) is marking the package for installation
u: Unknown (an unknown state) i: Install (marked for installation) r: Remove (marked for removal) p: Purge (marked for purging) h: Hold
The second character signifies the current state, whether it is installed or not. The possible values are
n: Not- The package is not installed i: Inst – The package is successfully installed c: Cfg-files – Configuration files are present u: Unpacked- The package is stilled unpacked f: Failed-cfg- Failed to remove configuration files h: Half-inst- The package is only partially installed W: trig-aWait t: Trig-pend
This corresponds to the error state. The possible value include
R: Reinst-required The package must be installed.