Packages can be searched and listed using the command
aptitude search foo. The status of these packages are listed in the leftmost column. The values of these status is explained in the Aptitude manual:
p not installed,
I see the status
pi beside some packages. What does this status mean?