Как сделать найти пакет, установленный yum?

El problema definitivamente estaba basado en el hardware -:, la tarjeta gráfica no funcionaba correctamente, lo que de alguna manera causó más problemas en Linux que en Win XP.

Con otra tarjeta gráfica pude instalar (de hecho para ejecutar Live Linux desde USB )varias instancias :Light Linux, LXLE, Bodhi y Lubuntu. Todos funcionaron, y esas fueron las últimas versiones, como se indica en la primera publicación.

Para este hardware, según la transmisión de YouTube, lo mejor fue trabajar con Lubuntu en modo seguro.

3
21.09.2018, 06:48
2 ответа

Если вы хотите знать, где находится файл rpm, в зависимости от вашей конфигурации yum ваша система может сохранить его или нет. Проверьте /etc/yum.conf (, не уверен, что это правильное место во ВСЕХ системах, но на моем компьютере Centos это правильное место )для строки "cachedir=", и это скажет вам, где находится кеш rpm. расположен. Например:

grep cachedir /etc/yum.conf 

В моей системе указано /var/cache/yum/$basearch/$releasevar

В том же файле, если включен параметр keepcache=0, ваша система не будет сохранять rpm. Измените это на keepcache=1, чтобы сохранить их. В зависимости от вашего места для хранения вам может потребоваться очистить это время от времени.

Если вы хотите узнать, где в вашей системе находится фактическое программное обеспечение, сделайте следующее:

rpm -qa | grep php-imap

Затем возьмите имя пакета из результата (похоже, что это может быть php -imap.x86 _64 )и сделайте это

rpm -q --filesbypkg <package full name here>
3
28.04.2021, 23:42

Учитывая, что ваш вопрос касается пакетов, установленных с помощью yum, вам необходимо проверить опции infoи list"sub -flags". Согласно Юмману:

       info           Display details about a package or group of packages 
       list   Is used to list various information about available packages;

        LIST OPTIONS
       The following are the ways which you can invoke yum in list mode.  Note that all list commands include information on the version of the package.

       OUTPUT

              The format of the output of yum list is:

              name.arch [epoch:]version-release  repo or @installed-from-repo

              Note that if the repo cannot be determined, "installed" is printed instead.

       yum list [all | glob_exp1] [glob_exp2] [...]
              List all available and installed packages.

       yum list available [glob_exp1] [...]
              List all packages in the yum repositories available to be installed.

       yum list updates [glob_exp1] [...]
              List all packages with updates available in the yum repositories.

       yum list installed [glob_exp1] [...]
              List the packages specified by args.  If an argument does not match the name of an available package, it is assumed to be a shell-style glob and any matches are printed.

       yum list extras [glob_exp1] [...]
              List the packages installed on the system that are not available in any yum repository listed in the config file.

       yum list distro-extras [glob_exp1] [...]
              List the packages installed on the system that are not available, by name, in any yum repository listed in the config file.

       yum list obsoletes [glob_exp1] [...]
              List the packages installed on the system that are obsoleted by packages in any yum repository listed in the config file.

       yum list recent
              List packages recently added into the repositories. This is often not helpful, but what you may really want to use is "yum list-updateinfo new" from the security yum plugin.

Кроме того, путь к установленным пакетам зависит от настроек вашей системы:

В Centos7

/var/tmp/yum-root-xxxxx/ 

или

/var/tmp/yum-username-xxxxx/

или

/var/cache/yum/x86_64/7/program_name/packages/

В RHEL файлы хранятся в

/var/cache/yum/x86_64/6Server/rhel-6-server-rpms/packages/
2
28.04.2021, 23:42

Теги

Похожие вопросы