Questions tagged [package-managers]

Software that allows administrators (and in some cases also users) to control the installation and upgrade process of packages on their systems.

Package management systems exist for most operating systems. Programs (like interpreters for some languages, scientific computing systems, etc.) may also have their own package manager for handling extensions, scripts or plugins.

The chief goal is to provide a means for software to recursively specify dependancies, allowing a software package's dependant libraries to be automatically installed.

999 questions
1076
votes
14 answers

What is the difference between pip and conda?

I know pip is a package manager for python packages. However, I saw the installation on IPython's website use conda to install IPython. Can I use pip to install IPython? Why should I use conda as another python package manager when I already have…
lazywei
  • 11,955
  • 5
  • 20
  • 25
986
votes
19 answers

How to list npm user-installed packages

How do I list the user-installed / environment package only in npm? When I do npm -g list, it outputs every package and their dependencies. Instead I'd like to see the packages installed in the current working project or environment.
lolski
  • 16,231
  • 7
  • 34
  • 49
893
votes
23 answers

How do I update/upgrade pip itself from inside my virtual environment?

I'm able to update pip-managed packages, but how do I update pip itself? According to pip --version, I currently have pip 1.1 installed in my virtualenv and I want to update to the latest version. What's the command for that? Do I need to use…
zakdances
  • 22,285
  • 32
  • 102
  • 173
600
votes
29 answers

How can I update npm on Windows?

I tried this: sudo npm cache clean -f sudo npm install -g n sudo n stable ...but it didn't work. How do I do this on Windows?
Jatin
  • 14,112
  • 16
  • 49
  • 78
349
votes
7 answers

How to list the contents of a package using YUM?

I know how to use rpm to list the contents of a package (rpm -qpil package.rpm). However, this requires knowing the location of the .rpm file on the filesystem. A more elegant solution would be to use the package manager, which in my case is YUM.…
Lorin Hochstein
  • 57,372
  • 31
  • 105
  • 141
307
votes
3 answers

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

I'm a bit miffed by the python package installation process. Specifically, what's the difference between packages installed in the dist-packages directory and the site-packages directory?
maxm
  • 5,161
  • 7
  • 30
  • 33
279
votes
3 answers

Why use peer dependencies in npm for plugins?

Why does, for example, a Grunt plugin define its dependency on grunt as "peer dependencies"? Why can't the plugin just have Grunt as its own dependency in grunt-plug/node_modules? Peer dependencies are described here:…
Thomas Stock
  • 10,927
  • 14
  • 62
  • 79
210
votes
6 answers

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

I was watching this, and, as you can see, the first command I am told to put in is: sudo apt-get install python-setuptools When I do this, it outputs: sudo: apt-get: command not found I have no idea why this is the case. How can I resolve this so…
user2800761
  • 2,235
  • 2
  • 13
  • 8
182
votes
5 answers

Is there a command to update Cargo to the latest official release?

I seem to have diverging versions of rustc and cargo (I think), $ rustc -V rustc 1.9.0 (e4e8b6668 2016-05-18) $ cargo -V cargo 0.10.0-nightly (10ddd7d 2016-04-08) Is there a command akin to pip install --upgrade pip for upgrading cargo? I.e.…
Filip Allberg
  • 3,941
  • 3
  • 20
  • 37
181
votes
4 answers

Conda: Installing / upgrading directly from github

Can I install/upgrade packages from GitHub using conda? For example, with pip I can do: pip install git+git://github.com/scrappy/scrappy@master to install scrappy directly from the master branch in GitHub. Can I do something equivalent with…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
156
votes
8 answers

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

Suppose I'm writing a library A, that depends on another library, monolog for instance. I want to install the latest version of monolog, so I just put this inside composer.json: { "require": { "monolog/monolog": "*.*.*" } } Then I…
HappyDeveloper
  • 12,480
  • 22
  • 82
  • 117
155
votes
15 answers

How do I import a specific version of a package using go get?

coming from a Node environment I used to install a specific version of a vendor lib into the project folder (node_modules) by telling npm to install that version of that lib from the package.json or even directly from the console, like so: $ npm…
Wilk
  • 7,873
  • 9
  • 46
  • 70
130
votes
15 answers

What does this mean: Failure [INSTALL_FAILED_CONTAINER_ERROR]?

I try to deploy my app and sometimes get this error: Failure [INSTALL_FAILED_CONTAINER_ERROR] I tried to google it but don't find what the error means or what it's caused by. I deploy via IDE (IntelliJ) the file gets copied to the device to…
Mathias Conradt
  • 28,420
  • 21
  • 138
  • 192
125
votes
6 answers

Where does SDKMAN install packages?

I used SDKMAN! to install Groovy which went fine. Where is the installed package now? I need the path for it. I am on Ubuntu 14.04.
Med Tumy
  • 1,705
  • 2
  • 11
  • 20
116
votes
3 answers

Do you put Babel and Webpack in devDependencies or Dependencies?

I'm new to npm and don't really understand what should go into dependencies vs. devDependencies. I know that for testing libraries they should go into dev, but how about for things like babel and webpack? Should they be in dev too, because they're…
stackjlei
  • 9,485
  • 18
  • 65
  • 113
1
2 3
66 67