code: def unpurge(*packages):
      '''
      Change package selection for each package specified to 'install'
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' lowpkg.unpurge curl
      '''
      if not packages:
          return {}
      old = __salt__['pkg.list_pkgs'](purge_desired=True)
      ret = {}
      __salt__['cmd.run'](
          ['dpkg', '--set-selections'],
          stdin=r'\n'.join(['{0} install'.format(x) for x in packages]),
          python_shell=False,
          output_loglevel='trace'
      )
      __context__.pop('pkg.list_pkgs', None)
      new = __salt__['pkg.list_pkgs'](purge_desired=True)
      return salt.utils.data.compare_dicts(old, newf unpurge(*packages):
      '''
      Change package selection for each package specified to 'install'
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' lowpkg.unpurge curl
      '''
      if not packages:
          return {}
      old = __salt__['pkg.list_pkgs'](purge_desired=True)
      ret = {}
      __salt__['cmd.run'](
          ['dpkg', '--set-selections'],
          stdin=r'\n'.join(['{0} install'.format(x) for x in packages]),
          python_shell=False,
          output_loglevel='trace'
      )
      __context__.pop('pkg.list_pkgs', None)
      new = __salt__['pkg.list_pkgs'](purge_desired=True)
      return salt.utils.data.compare_dicts(old, new)
docs: Change package selection for each package specified to 'install'
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' lowpkg.unpurge curl