diff --git a/src/applications/audit/query/PhabricatorCommitSearchEngine.php b/src/applications/audit/query/PhabricatorCommitSearchEngine.php
--- a/src/applications/audit/query/PhabricatorCommitSearchEngine.php
+++ b/src/applications/audit/query/PhabricatorCommitSearchEngine.php
@@ -70,6 +70,8 @@
   }
 
   protected function buildCustomSearchFields() {
+    $show_packages = PhabricatorApplication::isClassInstalled(
+      'PhabricatorPackagesApplication');
     return array(
       id(new PhabricatorSearchDatasourceField())
         ->setLabel(pht('Responsible Users'))
@@ -118,6 +120,7 @@
         ->setConduitKey('packages')
         ->setAliases(array('package', 'packages', 'packagePHID'))
         ->setDatasource(new PhabricatorOwnersPackageDatasource())
+        ->setIsHidden(!$show_packages)
         ->setDescription(
           pht('Find commits which affect given packages.')),
       id(new PhabricatorSearchThreeStateField())