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.

Filter by
Sorted by
Tagged with
1113 votes
15 answers
548k views

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 ...
lazywei's user avatar
  • 12.3k
1020 votes
19 answers
743k views

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 ...
lolski's user avatar
  • 16.7k
933 votes
23 answers
2.4m views

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. ...
zakdances's user avatar
  • 22.8k
678 votes
18 answers
1.1m views

How can I remove a package from Laravel using PHP Composer?

What is the correct way to remove a package from Laravel using PHP Composer? So far I've tried: Remove declaration from file composer.json (in the "require" section) Remove any class ...
igaster's user avatar
  • 13.4k
600 votes
29 answers
1.8m views

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's user avatar
  • 14.2k
356 votes
7 answers
407k views

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 ...
Lorin Hochstein's user avatar
312 votes
3 answers
131k views

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's user avatar
  • 5,251
287 votes
3 answers
121k views

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 ...
Thomas Stock's user avatar
221 votes
5 answers
166k views

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 ...
Filip Allberg's user avatar
215 votes
6 answers
734k views

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 ...
user2800761's user avatar
  • 2,285
189 votes
4 answers
211k views

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 ...
Amelio Vazquez-Reina's user avatar
162 votes
8 answers
215k views

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": { ...
HappyDeveloper's user avatar
160 votes
15 answers
285k views

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 ...
Wilk's user avatar
  • 7,983
131 votes
6 answers
76k views

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's user avatar
  • 1,765
130 votes
15 answers
94k views

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 (...
Mathias Conradt's user avatar
123 votes
3 answers
62k views

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 ...
stackjlei's user avatar
  • 9,805
111 votes
4 answers
165k views

composer.lock: how does it work?

I'm trying to understand this part: http://getcomposer.org/doc/02-libraries.md#lock-file this lock file will not have any effect on other projects that depend on it. It only has an effect on the ...
HappyDeveloper's user avatar
86 votes
3 answers
70k views

Alpine Add Package from Edge repository

If I'm using Alpine 3.8, how can I add a specific package from the Alpine Edge repository? Is this even supported? There is no equivalent of backports, from what I can see. I want to add the new ...
clay's user avatar
  • 19.3k
84 votes
2 answers
46k views

How does the "replace" property work with composer?

So how does the "replace" property work with composer? I have read the composer document but still not understand it. Searching for more info hasn't answered my questions. When I look at the composer....
Ilyes512's user avatar
  • 2,687
83 votes
7 answers
35k views

Package(Plugin) Management for Vim

Emacs 24 looks like it will have a package manager. What package management options are there for Vim?
ntimes's user avatar
  • 1,279
81 votes
6 answers
122k views

What does conda do when "solving environment"

Whenever I run conda install/remove/update <package>, it tells me it's "Solving environment" for some time before telling me the list of things it's going to download/install/update. Presumably ...
dkv's user avatar
  • 6,990
81 votes
3 answers
57k views

Is there a package manager for Java like easy_install for Python? [closed]

Is there a package manager for Java like easy_install for Python ? I'm looking for a solution usable from the command line and not from an IDE.
systempuntoout's user avatar
80 votes
4 answers
138k views

What is the difference between yarn run and npm start?

Is yarn run intended to be the equivalent of npm start?
daniely's user avatar
  • 7,563
77 votes
2 answers
17k views

Package Manager: Bower vs jspm

How is Bower different than jspm? Can Bower provide jspm functionality about SystemJS universal module loader?
Lee Chee Kiam's user avatar
74 votes
5 answers
101k views

How to install packages in Linux (CentOS) without root user with automatic dependency handling?

Is it possible to use RPM or YUM or any other package manager in Linux, specifically CentOS, to install a package either already downloaded or from repo to a custom location without admin/root access? ...
user3330840's user avatar
  • 6,985
72 votes
12 answers
6k views

What do you expect from a package manager for Emacs? [closed]

Although several thousand Emacs Lisp libraries exist, GNU Emacs, until version 24.1 did not have an (internal) package manager. I guess that most users would agree that it is currently rather ...
67 votes
4 answers
45k views

What is the difference between brew, yarn, and npm?

I was using the react-native package which I installed globally with npm. Now it says at the first line after executing the init command. The following: Installing react-native from npm... Consider ...
user007's user avatar
  • 1,606
62 votes
3 answers
83k views

How to uninstall all unused packages in a conda virtual environment?

I have a conda virtual environment with several unused packages installed inside it (either using pip install or conda install). What is the easiest way to clean it up so that only packages that are ...
Erwin Mayer's user avatar
  • 18.3k
62 votes
5 answers
57k views

What does " -r " do in pip install -r requirements.txt

I looked up how to install multiple packages from a requirements document using pip. The answers were mostly: pip install -r requirements.txt What does the -r do though? I can't find an answer for ...
SuperCow's user avatar
  • 1,573
51 votes
1 answer
25k views

Feature comparison between npm, pip, pipenv and Poetry package managers [closed]

How do the main features of npm compare with pip, pipenv and Poetry package managers? And how do I use those features of pipenv or Poetry? This could primarily help someone transitioning from being ...
Resonance's user avatar
  • 3,558
51 votes
9 answers
12k views

Are there any efforts to create a package manager for C++? [closed]

One of my biggest frustrations with my favorite language is the effort it takes to get different libraries working for together under one unified development environment. My biggest wish is to just ...
Benjamin Lindley's user avatar
47 votes
6 answers
35k views

Error while trying to update brew package manager

I tried to update brew: sudo brew update But I got this error: error: Your local changes to the following files would be overwritten by merge: Listing a lot of files Error: Failed while executing ...
Chiron's user avatar
  • 20.2k
47 votes
4 answers
65k views

How to install packages from Docker compose?

Hi there I am new to Docker. I have an docker-compose.yml which looks like this: version: "3" services: lmm-website: image: lmm/lamp:php${PHP_VERSION:-71} container_name: ${CONTAINER_NAME:-...
Blackbam's user avatar
  • 18.4k
47 votes
4 answers
48k views

Add custom package source to Visual Studio Code

Does anybody know how to add custom package source to Visual Studio Code? E.g. I'd like to add https://www.myget.org/F/aspnet-contrib/api/v3/index.json as a package source and drive these packages ...
Tomino's user avatar
  • 6,099
47 votes
4 answers
30k views

How do I search for packages using yarn?

How do I search for packages with yarn? I want to get a list of results that have the search term in the name of the package as well as in descriptions (similar to how various utilities work like npm ...
labyrinth's user avatar
  • 13.6k
46 votes
5 answers
23k views

How can I use npm for front-end dependencies?

I want to ask if it is possible (and generally a good idea) to use npm to handle front-end dependencies (Backbone, jQuery). I have found that Backbone, jQuery and so on are all available through npm ...
dev.pus's user avatar
  • 8,059
45 votes
3 answers
18k views

How to list all the commands available in package.json?

A package.json can have lot of commands and common ones are npm start, npm test but there are generally more commands. Is there a way to list all the commands? Currently I use less package.json but ...
igauravsehrawat's user avatar
44 votes
8 answers
76k views

Installing Ruby 1.9.1 on Ubuntu?

I wonder about installing the latest version of Ruby on Ubuntu 9.04. Now I can run through the ./configure and make stuff fine, but what I wonder about: how to avoid conflicts with the packaging ...
Björn's user avatar
  • 1,183
43 votes
7 answers
44k views

Homebrew install permissions issue

I have a standard homebrew install inside of usr/local/ When I try: Larson-2:~ larson$ brew install postgresql Error: Cannot write to /usr/local/Cellar And when I use sudo: Larson-2:~ larson$ sudo ...
Andrew Lauer Barinov's user avatar
43 votes
7 answers
70k views

Can yum tell me which of my repositories provide a particular package?

Hopefully short version of the question: If I'm on a machine that has a particular package installed, is there a yum command that will tell me which of it's configured repositories provided that ...
Brian Deacon's user avatar
  • 21.6k
41 votes
1 answer
17k views

What's the difference between Chocolatey, OneGet, PsGet, NuGet, ...?

I know there are many package sources for PowerShell extensions. I'm seeking for a comprehensive answer, how: Chocolatey NuGet PsGet PowerShellGallery OneGet MyGet ProGet ... all these fit together ...
Paebbels's user avatar
  • 15.9k
39 votes
1 answer
28k views

How to obtain older versions of packages using MSYS2?

I decided to try CLion for Windows, which recommends either MinGW or Cygwin for compilation. I installed the MSYS2 package manager into the default folder, C:\msys64, updated it by running update-...
Andy's user avatar
  • 1,161
38 votes
6 answers
35k views

Invalid object name 'dbo.__MigrationHistory' using Database.Create; EF6.02 when connection string is passed in

I experience an error when trying to create a database using the following code. Note the problem does not happen if the connection string is not passed in. Also the problem happens when I run the ...
Kirsten's user avatar
  • 17k
38 votes
2 answers
12k views

Package Manager vs Dependency Manager

What is the difference between a package manager and a dependency manager?
Erlan's user avatar
  • 2,058
36 votes
15 answers
64k views

Snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks

I have been using snap for some time but after a recent upgrade, I get this error when I try opening any application Snap-confine has elevated permissions and is not confined but should be. Refusing ...
ROOT-X17's user avatar
  • 463
36 votes
4 answers
59k views

Is there any way to retrieve a dependency tree from yum?

To reduce the chance of the XY problem, I'm trying to install PostGIS on a clean, virtual RHEL5 installation with heavy restrictions. I do not know if we (as a company) have a RH subscription. # yum ...
Sean Allred's user avatar
  • 3,598
36 votes
7 answers
20k views

Can I run a private npm repository without replicating the public repository?

I'm writing a number of pieces of code (for internal use) using node.js and want to store the modules (packaged up for npm) in a package repository for each distribution to the various machines they ...
Quentin's user avatar
  • 931k
35 votes
1 answer
14k views

Lua's package management system?

What's the Lua's standard package management system and repository? Like brew for Mac OS X, npm for node.js.
eonil's user avatar
  • 84.9k
34 votes
2 answers
14k views

Can't import packages using Swift 4 Package Manager

Trying to test Swift 4 using Xcode-beta (v9) on my machine and having issues with importing packages into a test project: Initiated project using swift package init --type executable Changed Package....
Timka's user avatar
  • 1,769
34 votes
2 answers
10k views

Why doesn't Gradle or Maven have a dependency version lock file?

I've recently been introduced to the concept of a dependency version lock file when reading about package managers like NPM, Yarn, Paket, Cargo, etc. My understanding is that it is a file that lists ...
jmrah's user avatar
  • 6,045

1
2 3 4 5
21