I am reading this Digital Ocean tutorial. In step 1, it says:
We'll need [...] acl to set the right directory permissions when installing the application
I wanted to check if acl is already installed:
$ dpkg -s acl
dpkg-query: package 'acl' is not installed and no information is
available Use dpkg --info (= dpkg-deb --info) to examine archive
files, and dpkg --contents (= dpkg-deb --contents) to list their
contents.
Then my logic tells me to look for it with apt-cache search, and I run apt-cache search acl; it returns a list of packages, but I don't see one named strictly acl.
After some investigation I found similar questions on SO, here and there.
I try: apt-cache policy acl. It returns:
acl:
Installed: (none)
Candidate: 2.2.52-3
Version table:
2.2.52-3 500
500 https://mirrors.gandi.net/ubuntu xenial/main amd64 Packages
So I guess it means that is alright acl is installed.
I don't understand, since it seems installed when I do apt-cache policy acl why dpkg -s acl returns that it is not installed?
I've read something that I don't understand in there in the apt-cache command doc:
apt-cache policy displays the priorities of package sources as well as those of individual packages