I want to install NWChem (a molecular simulation package) and the link given for Ubuntu in their website is: https://launchpad.net/ubuntu/+source/nwchem.

Can you please let me know how to add it to the sources file, so that I can use apt to install it?

I tried for the ppa but I could not find any at all.


Just simply run:

sudo apt install nwchem

it's a supported package which already exist in official repository, and the link you provide is the source of it.

The fact is that you already have access to the source of this package, if you want to download the source you can run:

apt source --download-only nwchem

And if you want to compile and install it from source code:

  1. first install the built dependencies.

    sudo apt build-dep nwchem
  2. then use this command to fetch and compile nwchem

    apt source --compile nwchem
  3. then install it:

    sudo dpkg -i nwchem-version.deb

or you can use things like gdebi to handle dependencies too.

  • You need 8 spaces to do code formatting when using numbering... :-) – Fabby Apr 1 '17 at 10:38
  • 1
    I was wondering why it's don't get the correct format, thanks ;) – Ravexina Apr 1 '17 at 10:46
  • Good you left a comment: I forgot to upvote a good answer! – Fabby Apr 1 '17 at 10:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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