The History of the Package Manager

Matt George

Fractional CTO · Founder of Injuria.ai

The History of the Package Manager

A package manager is a collection of software tools that automates the process of installing, upgrading, configuring, and removing computer programs for a computer's operating system in a consistent manner. At its core, it solves the fundamental and complex problem of managing software and its dependencies. Without package management, installing a single application could require a user to manually locate, download, compile, and install dozens or even hundreds of prerequisite libraries, a fragile and error-prone process that developers once grimly referred to as "dependency hell."

The history of the package manager is a story of escalating complexity and the corresponding rise of abstraction and automation. It begins in an era of monolithic systems where software was physically delivered and manually installed. It then tracks the rise of networked computing and the collaborative, open-source ethos of Unix, which created the need for shared code but provided only primitive tools to manage it. The narrative accelerates in the 1990s with the development of formal operating system package managers like Debian's APT and Red Hat's RPM, which introduced centralized repositories and automatic dependency resolution, transforming how entire operating systems were built and maintained.

This evolution continued as developers sought more granular control over their project-specific dependencies, leading to the creation of language-specific managers like Perl's CPAN, Java's Maven, and Node.js's npm. Each learned from its predecessors, introducing concepts like project-level isolation, lockfiles for deterministic builds, and vast, internet-scale repositories. Today, the principles of package management have expanded to encompass entire application environments through containerization technologies like Docker and are being re-imagined through declarative systems like Nix, all while grappling with the critical modern challenge of software supply chain security.

The Precursors: Manual Distribution and Build Automation (1960s to 1980s)

In the early days of computing, software was inextricably tied to hardware. For mainframe systems like the IBM System/360[1], software was delivered on magnetic tapes and installed by system operators. Managing this software involved applying patches and updates, a process IBM formalized with tools like the System Modification Program/Extended (SMP/E)[2]. SMP/E provided a database to track installed components and a structured process for applying modifications, preventing conflicting updates. While not a package manager in the modern sense, it was one of the first systemic approaches to managing the state of installed software components on a single machine.

The culture of the Unix operating system, which gained prominence in the 1970s, emphasized small, interoperable tools and the sharing of source code. Distribution, however, remained primitive. Code was often shared via network protocols like UUCP[3] or posted on Usenet[4] newsgroups. A common method for bundling source code for distribution was the shar[5] (shell archive) utility, which packed multiple files into a single shell script that, when run, would recreate the original files. This was a step above manual file copying, but it offered no mechanism for managing dependencies or versions.

A crucial development in this period was not a distribution tool but a build automation tool. In 1976, at Bell Labs, Stuart Feldman created make[6]. The make utility reads a Makefile that specifies the relationships between source files and the commands needed to compile them into a final executable. It intelligently recompiles only what is necessary based on file modification times. make solved the problem of how to build a piece of software from its source code, a prerequisite for any automated installation process. However, it did not address where to get the source code or, more importantly, where to get the libraries the code depended on. This missing piece was the seed of "dependency hell," where developers were left to manually find and install every prerequisite, hoping the versions they found were compatible.

The Rise of Operating System Package Managers (1990s)

The 1990s saw the rise of free and open-source Linux distributions. These projects aggregated thousands of open-source software packages into a coherent, usable operating system. This scale made manual management impossible and created intense pressure for a robust solution. The answer came in the form of integrated, OS-level package managers that handled both the installation of software and the resolution of its dependencies from central, network-accessible repositories.

### Debian, dpkg, and APT

In 1993, Ian Murdock founded the Debian Project with the goal of creating a meticulously organized and reliable open-source distribution. A central part of this vision was a powerful package management system. The initial tool was dpkg, a low-level utility for installing, removing, and providing information about individual .deb package files. While dpkg could check if dependencies were met on the local system, it could not automatically download and install them.

The transformative breakthrough came around 1998 with the development of the Advanced Package Tool (APT). APT worked on top of dpkg and introduced the concepts that define modern OS package management. It used a simple text file, /etc/apt/sources.list, to define a list of network repositories. When a user requested to install a package, APT would connect to these repositories, download the correct .deb file, and recursively identify, download, and install all of its dependencies in the correct order. This automated dependency resolution was a monumental leap forward, making the maintenance of a complex Linux system tractable for the first time.

### Red Hat, RPM, and YUM

Running parallel to Debian's efforts, Red Hat developed its own system. In 1995, the RPM Package Manager[7] (originally Red Hat Package Manager) was created by Erik Troan and Marc Ewing. The .rpm file format and the rpm command-line tool served a similar function to .deb and dpkg: they bundled application files with metadata, including version information and dependency lists. Like dpkg, the rpm tool could verify dependencies but could not resolve them from a remote source.

This gap led to the creation of several front-end tools. The most successful was the Yellowdog Updater, Modified (yum)[8]. Originally developed for Yellow Dog Linux, it was adopted and heavily developed by a team at Duke University's Physics department, including Seth Vidal, to manage their Red Hat-based systems. yum provided the missing layer, adding repository management and automatic dependency resolution on top of the RPM system. It would analyze the dependency graph and fetch all required .rpm packages from configured repositories, functioning as the Red Hat ecosystem's counterpart to Debian's APT. In later years, yum was succeeded by dnf (Dandified YUM), a rewrite that offered better performance and a more robust API, but the core principles established by yum remained.

### Source-Based Systems: The FreeBSD Ports Collection

Not all systems adopted the binary package model. In 1994, the FreeBSD project introduced its Ports Collection[9]. This was a source-based system. Instead of providing pre-compiled binaries, the Ports Collection consisted of a directory tree of Makefiles. To install an application, a user would navigate to the appropriate directory and type make install. This command would automatically fetch the source code from the internet, apply any necessary patches, compile the code on the local machine, and install it. This approach offered maximum flexibility and optimization for the target machine, at the cost of the time required for compilation. It represented a different philosophy: providing the recipe to build the software rather than the finished product.

Meanwhile, the Windows world took a different path. Microsoft promoted the use of self-contained installers, culminating in the Windows Installer technology and .msi files in 1999. Each application was expected to bundle its own dependencies or rely on shared runtimes. While this simplified installation for a single application, the lack of a central authority to manage shared dynamic-link libraries (DLLs) led to the infamous "DLL Hell," where installing one program could overwrite a shared file and break another.

The Proliferation of Language-Specific Managers (Late 1990s to 2000s)

Operating system package managers were excellent for system-level software but were ill-suited for application development. A developer might need to work on multiple projects on the same machine, each requiring different versions of the same library. OS package managers, which typically install a single version of a library system-wide, could not accommodate this. This friction led to the rise of package managers tailored to the needs of specific programming languages.

### The Pioneer: Perl's CPAN

The first and arguably most influential language-specific package manager was the Comprehensive Perl Archive Network (CPAN), launched in 1995. Conceived and maintained by figures like Jarkko Hietaniemi and Andreas König, CPAN was more than just a repository; it was an entire ecosystem. It provided a massive, mirrored archive of Perl modules and a command-line client, cpan, that could search for, download, build, test, and install modules, automatically handling dependencies along the way. CPAN established the blueprint for nearly every language package manager that followed: a central public repository, a command-line interface for interaction, and a metadata file within each project to declare its dependencies.

### Enterprise Discipline: Java's Maven

In the early 2000s, Java development was dominated by the Apache Ant[10] build tool. Ant was powerful but procedural, and it had no built-in dependency management. Developers had to manually download Java Archive (.jar) files and add them to their project's classpath. This was tedious and made it difficult to share projects.

Apache Maven[11], created by Jason van Zyl and first released in 2004, introduced a new, declarative approach. Developers defined their project's metadata, including its dependencies, in an XML file named pom.xml (Project Object Model). When building the project, Maven would read the POM, resolve all direct and transitive dependencies, and download the required .jar files from a central repository, Maven Central[12]. Maven also enforced a standard project directory structure, which simplified builds and made projects more uniform. This convention-over-configuration approach brought discipline and reproducibility to Java dependency management.

### Developer Experience: RubyGems, PyPI, and pip

As other dynamic languages grew in popularity, they too developed their own package management ecosystems, often with a strong focus on ease of use.

RubyGems[13] was released in 2004, providing the Ruby community with a standard package format (the "gem") and the gem command-line tool. It became indispensable with the explosive growth of the Ruby on Rails web framework, which relied heavily on a rich ecosystem of third-party libraries.

The Python community established the Python Package Index (PyPI)[14] in 2002 as a central repository. After early tools like easy_install, the community standardized on pip (Pip Installs Packages), initially created by Ian Bicking in 2008. The combination of pip with requirements.txt files for listing dependencies and tools like virtualenv for creating isolated project environments gave Python developers a powerful workflow. They could now manage project-specific dependencies without interfering with the system-wide Python installation, directly solving the core problem that OS package managers could not.

The Modern Era: Speed, Sandboxing, and Scale (2010s)

The 2010s were defined by the explosion of web development and the rise of JavaScript as a dominant force on both the front-end and back-end, thanks to Node.js[15]. JavaScript projects often depend on hundreds or even thousands of small, single-purpose packages, pushing existing package management models to their limits and inspiring a new generation of tools focused on performance and determinism.

### Node.js and npm

When Ryan Dahl[16] created Node.js in 2009, he recognized the need for a robust package manager. Isaac Z. Schlueter created npm (Node Package Manager)[17], which was bundled with Node.js starting in 2011. npm made two key design decisions. First, it installed packages locally to a node_modules directory within each project by default, solidifying the trend of project-level isolation. Second, it resolved dependencies by creating a nested tree, meaning a dependency could have its own node_modules directory with its own versions of sub-dependencies. This elegantly solved version conflicts but led to deeply nested directory structures and significant disk space usage due to package duplication.

Project metadata and dependencies were declared in a package.json file. The combination of a simple CLI, a massive public repository, and the declaration of dependencies via package.json made npm wildly successful, and it grew to become the largest package repository in the world.

### Addressing npm's Shortcomings: Yarn and pnpm

npm's initial design had weaknesses. Installations could be slow, and the dependency resolution was not always deterministic, meaning two developers on the same project could end up with slightly different sets of installed packages. In 2016, Facebook (now Meta) released Yarn[18] to address these issues. Yarn introduced parallel package downloads, checksums for security, and, most importantly, a lockfile (yarn.lock). The lockfile captures the exact version of every installed package, guaranteeing that every developer on the team, as well as the production environment, gets an identical node_modules tree. This concept of a lockfile was so critical that npm soon followed suit, introducing package-lock.json.

Another criticism of both npm and Yarn was the disk space inefficiency caused by duplicating packages across many projects. pnpm (Performant npm)[19], first released in 2017, solved this with a novel approach. It stores all packages in a single, content-addressable store on the disk. Within a project's node_modules directory, it uses hard links or symlinks to point to the packages in this central store. This means a specific version of a package is only ever physically stored once, drastically reducing disk usage while still providing project isolation.

### Maturation in Other Ecosystems

Other language ecosystems also continued to refine their tools, often learning from the rapid innovation in the JavaScript world.

  • Composer (PHP, 2012): Inspired by npm and Ruby's Bundler, Composer brought modern, project-level dependency management to PHP, which had previously lacked a dominant solution.
  • Cargo (Rust, 2014): The Rust programming language was designed with a modern package manager, Cargo, as a core part of its toolchain from day one. Cargo manages dependencies from the crates.io repository, runs builds, executes tests, and enforces the use of Semantic Versioning (SemVer)[20]. Its tight integration and use of a Cargo.lock file for reproducible builds made it a model of a well-designed, modern package management system.
  • Homebrew (macOS, 2009): While not a language-specific manager, Homebrew[21], created by Max Howell, filled a critical void for developers on macOS, which lacked a built-in package manager like those on Linux. It became the de facto standard for installing development tools and libraries on Apple's platform.

The Universal and Containerized Future (Late 2010s to Present)

As applications became complex services composed of multiple languages and system dependencies, a new challenge emerged: how to package and distribute the entire application environment, not just its source code or language libraries. This led to the rise of containers and experiments with universal package formats.

### Containers as the Ultimate Package

Docker, released in 2013, popularized containers, a lightweight form of OS-level virtualization. A Dockerfile acts as a recipe that defines a complete, self-contained application environment. It specifies a base operating system image, runs OS package manager commands (like apt-get install), copies in application code, and runs language-specific package managers (like npm install). The result is a portable, immutable image that contains the application and its entire dependency stack.

In effect, a container image is the ultimate package. It eliminates the "it works on my machine" problem by bundling the application with a known-good set of OS libraries, system dependencies, and language runtimes. The formation of the Open Container Initiative (OCI)[22] in 2015 helped standardize container image formats and runtimes, ensuring interoperability across tools. Containers shifted the focus from managing individual packages to managing entire, runnable application images.

### Universal Linux Packages and Declarative Systems

On the Linux desktop, the fragmentation of package formats (.deb, .rpm, etc.) remained a problem for application developers wishing to distribute software directly to users. This led to the creation of universal package formats designed to run across different distributions.

  • Snap (2014): Developed by Canonical, Snaps are bundled applications with their dependencies that run in a sandbox.
  • Flatpak (2015): A community-driven alternative with similar goals, focused on sandboxing and bundling dependencies for desktop applications.

These systems represent a move away from the traditional, deeply integrated distribution repository model toward a more application-centric model, similar to mobile app stores.

A more radical rethinking of package management is found in declarative systems like Nix[23] and GNU Guix[24]. Nix treats package builds as pure functions: the build instructions and all inputs (source code, dependencies, compilers) are hashed, and the output is stored in a unique path based on that hash. This provides truly reproducible builds, allows multiple versions of any package to coexist without conflict, enables atomic upgrades and rollbacks, and allows for per-project environments that are perfectly defined. While still a niche, the powerful ideas from Nix have influenced many other tools, including pnpm's content-addressable storage.

### The Road Ahead: Security and Standardization

The primary frontier for package management today is security. Public repositories like npm and PyPI are critical infrastructure but have become targets for attacks like typosquatting[25], dependency confusion, and the injection of malware into popular packages. In response, the industry is rapidly developing tools and standards for securing the software supply chain. Key initiatives include the generation of a Software Bill of Materials (SBOM[26]) to inventory all components of an application, automated vulnerability scanning, and cryptographic signing of packages to verify their origin and integrity. Projects like Sigstore[27] are working to make code signing easy and universally available.

From manual tape loading to automated, cryptographically-secured, and declaratively-defined environments, the history of the package manager is one of continuous abstraction in the face of growing complexity. Each stage built upon the last, solving one set of problems while often revealing the next. The journey continues, driven by the unchanging need for reliable, reproducible, and secure software.

Sources (27)
  1. IBM System/360 - Wikipedia
  2. IBM SMP/E Documentation
  3. UUCP - Wikipedia
  4. Usenet - Wikipedia
  5. shar (shell archive) - Wikipedia
  6. Make - A Program for Maintaining Computer Programs (S. Feldman, 1979)
  7. About RPM Package Manager
  8. Yum (software) - Wikipedia
  9. FreeBSD Ports Collection Handbook
  10. Apache Ant
  11. What is Maven? - Apache Maven Project
  12. Maven Central Repository
  13. What is a gem? - RubyGems Guides
  14. Python Package Index (PyPI)
  15. About Node.js
  16. Ryan Dahl - Wikipedia
  17. About npm - npm Docs
  18. Yarn: A new package manager for JavaScript - Meta Engineering
  19. Motivation - pnpm
  20. Semantic Versioning 2.0.0
  21. Homebrew - The Missing Package Manager for macOS
  22. Open Container Initiative
  23. How Nix Works - NixOS
  24. Features - GNU Guix
  25. Typosquatting - Wikipedia
  26. Software Bill of Materials (SBOM) - CISA
  27. Sigstore: A new standard for signing, verifying and protecting software

Recommended reading