composer: How to find the exact version of a package?

I know it’s an old question, but… composer.phar show Will show all the currently installed packages and their version information. (This was shown in previous versions of Composer only when using the now-deprecated -i option.) To see more details, specify the name of the package as well: composer.phar show monolog/monolog That will show many things, … Read more

Why is the apt-get function not working in the terminal on Mac OS X v10.9 (Mavericks)?

Mac OS X doesn’t have apt-get. There is a package manager called Homebrew that is used instead. This command would be: brew install python Use Homebrew to install packages that you would otherwise use apt-get for. The page I linked to has an up-to-date way of installing homebrew, but at present, you can install Homebrew … Read more

Why use peer dependencies in npm for plugins?

TL;DR: peerDependencies are for dependencies that are exposed to (and expected to be used by) the consuming code, as opposed to “private” dependencies that are not exposed, and are only an implementation detail. The problem peer dependencies solve NPM’s module system is hierarchical. One big advantage for simpler scenarios is that when you install an … Read more

What’s the difference between dist-packages and site-packages?

dist-packages is a Debian-specific convention that is also present in its derivatives, like Ubuntu. Modules are installed to dist-packages when they come from the Debian package manager into this location: /usr/lib/python2.7/dist-packages Since easy_install and pip are installed from the package manager, they also use dist-packages, but they put packages here: /usr/local/lib/python2.7/dist-packages From the Debian Python … Read more

How to list the contents of a package using YUM?

There is a package called yum-utils that builds on YUM and contains a tool called repoquery that can do this. $ repoquery –help | grep -E “list\ files” -l, –list list files in this package/group Combined into one example: $ repoquery -l time /usr/bin/time /usr/share/doc/time-1.7 /usr/share/doc/time-1.7/COPYING /usr/share/doc/time-1.7/NEWS /usr/share/doc/time-1.7/README /usr/share/info/time.info.gz On at least one RH system, … Read more

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