code: def refresh_db(**kwargs):
      '''
      Update ports with ``port selfupdate``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt mac pkg.refresh_db
      '''
      # Remove rtag file to keep multiple refreshes from happening in pkg states
      salt.utils.pkg.clear_rtag(__opts__)
      cmd = ['port', 'selfupdate']
      return salt.utils.mac_utils.execute_return_success(cmdf refresh_db(**kwargs):
      '''
      Update ports with ``port selfupdate``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt mac pkg.refresh_db
      '''
      # Remove rtag file to keep multiple refreshes from happening in pkg states
      salt.utils.pkg.clear_rtag(__opts__)
      cmd = ['port', 'selfupdate']
      return salt.utils.mac_utils.execute_return_success(cmd)
docs: Update ports with ``port selfupdate``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt mac pkg.refresh_db