{"action":"closed","issue":{"url":"https://api.github.com/repos/transcode-open/apt-cyg/issues/35","labels_url":"https://api.github.com/repos/transcode-open/apt-cyg/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/transcode-open/apt-cyg/issues/35/comments","events_url":"https://api.github.com/repos/transcode-open/apt-cyg/issues/35/events","html_url":"https://github.com/transcode-open/apt-cyg/issues/35","id":59984470,"number":35,"title":"Enhancement Request: Implement equivalent of yum list installed","user":{"login":"aware74","id":11335878,"avatar_url":"https://avatars.githubusercontent.com/u/11335878?v=3","gravatar_id":"","url":"https://api.github.com/users/aware74","html_url":"https://github.com/aware74","followers_url":"https://api.github.com/users/aware74/followers","following_url":"https://api.github.com/users/aware74/following{/other_user}","gists_url":"https://api.github.com/users/aware74/gists{/gist_id}","starred_url":"https://api.github.com/users/aware74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aware74/subscriptions","organizations_url":"https://api.github.com/users/aware74/orgs","repos_url":"https://api.github.com/users/aware74/repos","events_url":"https://api.github.com/users/aware74/events{/privacy}","received_events_url":"https://api.github.com/users/aware74/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-05T17:21:50Z","updated_at":"2015-07-30T00:56:28Z","closed_at":"2015-07-30T00:56:28Z","body":"This would allow me to query for whether a package is already installed within cygwin, without grepping the /etc/setup/installed.db repository myself.\r\n\r\nNot only would it be a convenience, but it would allow developers to get back a zero return code for installed and a non-zero return code for not installed without knowing that /etc/setup/installed.db exists as an implementation detail.\r\n\r\nIt would also allow for a developer to write something like:\r\n\r\n```bash\r\n${pkgMgr} list installed ${pkgName}\r\n```\r\n\r\nThis would provide the same exit code, regardless of whether `${pkgMgr}` were set to \"yum\", for example, on CentOS or RHEL, or set to \"apt-cyg\" on Cygwin.\r\n\r\nThanks in advance for your consideration.\r\n\r\nExample yum output for comparison:\r\n\r\n```bash\r\n[user@computer ~]# yum list installed wget\r\nInstalled Packages\r\nwget.x86_64 1.12-1.4.el6 @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3\r\n[user@computer ~]# echo $?\r\n0\r\n[user@computer ~]# yum list installed some_unheard_of_package\r\nError: No matching Packages to list\r\n[user@computer ~]# echo $?\r\n1\r\n```\r\n\r\nRegards,\r\nMike"}}