Fix get_krb5_cache_file_name function to suport Fedora and add function get_pkgs_info_idx function