How to list installed packages from a given repo using yum [closed]

Try yum list installed | grep reponame On one of my servers: yum list installed | grep remi ImageMagick2.x86_64 6.6.5.10-1.el5.remi installed memcache.x86_64 1.4.5-2.el5.remi installed mysql.x86_64 5.1.54-1.el5.remi installed mysql-devel.x86_64 5.1.54-1.el5.remi installed mysql-libs.x86_64 5.1.54-1.el5.remi installed mysql-server.x86_64 5.1.54-1.el5.remi installed mysqlclient15.x86_64 5.0.67-1.el5.remi installed php.x86_64 5.3.5-1.el5.remi installed php-cli.x86_64 5.3.5-1.el5.remi installed php-common.x86_64 5.3.5-1.el5.remi installed php-domxml-php4-php5.noarch 1.21.2-1.el5.remi installed php-fpm.x86_64 5.3.5-1.el5.remi installed php-gd.x86_64 … Read more

How do I find which rpm package supplies a file I’m looking for?

This is an old question, but the current answers are incorrect 🙂 Use yum whatprovides, with the absolute path to the file you want (which may be wildcarded). For example: yum whatprovides ‘*bin/grep’ Returns grep-2.5.1-55.el5.x86_64 : The GNU versions of grep pattern matching utilities. Repo : base Matched from: Filename : /bin/grep You may prefer … Read more

Open firewall port on CentOS 7 [closed]

Use this command to find your active zone(s): firewall-cmd –get-active-zones It will say either public, dmz, or something else. You should only apply to the zones required. In the case of public try: firewall-cmd –zone=public –add-port=2888/tcp –permanent Then remember to reload the firewall for changes to take effect. firewall-cmd –reload Otherwise, substitute public for your … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)