So currently I have

(require 'package) ;; You might already have this line
(add-to-list 'package-archives
             '("melpa" . "http://melpa.org/packages/"))
(when (< emacs-major-version 24)
  ;; For important compatibility libraries like cl-lib
  (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize) ;; You might already have this line

in my .emacs file. Mind you I am using emacs 24.5. Every single time I run

M-x package-install solarized-theme

I get no match found. Any ideas?

1 Answer 1


You have to run first M-x package-list-packages for Emacs to refresh its package database.

  • Had to restart emacs, found package and installed it. Just not through direct command. Commented Jun 27, 2015 at 22:05
  • 1
    You can also just run package-refresh-contents which won't open up the package list but still update the package list. Commented Jun 27, 2015 at 23:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.