009 Package Managers

03 Aug 2012

Package manager is a collection of tools for installing, upgrading, configuring and removing software packages in a computer. We will explore some commonly used ones such as RubyGems for ruby, Pip for python, Composer for php and NPM for node.js.

Download video: mp4

Sample code: Github

##Tools used:

  1. npm for node.js with example package nide text editor
  2. rubygems for ruby with example package sass css preprocessor
  3. pip for python with example package markdown for python
  4. composer for php with example package mustache for php
  5. Command line with [Terminal](http://en.wikipedia.org/wiki/Terminal_(OS_X)

##Commands for Packager managers

Run these command in the command line.

##Resources on Package Managers - what is a [package manager](http://en.wikipedia.org/wiki/Package_manager) - [list of software package management systems](http://en.wikipedia.org/wiki/List_of_software_package_management_systems)
npm composer pip rubygem
Language node -v php --version python --version ruby -v
Version npm --version composer --version pip --version gem -v
Location of the program file which npm which composer which pip which gem
List of all packages installed globally npm ls -g composer show
pip freeze gem list
Info about a package npm show
composer show
gem list
Install a package npm install
[package-name] -g
composer require

and run composer install
pip install
gem install
Uninstall a package npm uninstall
[package-name] -g
edit composer.json
and run composer update
pip uninstall
gem uninstall
Outdated packages npm -g outdated composer update --dry-run gem outdated
Updated packages npm -g update
composer update pip install
--upgrade [package-name]
gem update
Help npm help composer help pip help gem help
npm composer pip rubygem
Download & Install install node.js and npm for node install globally for php.
edit the php.ini file if needed
install pip for python install rubygems for ruby
Documentation doc doc doc guides
Browse for packages npm packagist pip rubygems
Other links tour of npm package management
##Build Link of this Episode [Nettuts+](http://net.tutsplus.com/) is a site aimed at providing tutorials for web development and design with editor [Jeffrey Way](jeffrey_way) and [many other talented people](http://net.tutsplus.com/meet-the-staff/). ##Credits Thanks to [Uzyn](http://twitter.com/uzyn) and [Mic](http://twitter.com/coderkungfu) for advise on php package managers