Jump to content

Ubuntu vs. NixOS: Difference between revisions

Remove duplicate header
(fix links)
(Remove duplicate header)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
== Ubuntu vs. NixOS ==
<!-- TODO''': Provide well-commented sample configuration.nix and ~/.nixpkgs/config.nix files with examples of common tasks. -->


The system-wide column is the equivalent of using <code>apt</code> under Ubuntu.
<!-- TODO''': Provide well-commented sample configuration.nix and ~/.nixpkgs/config.nix files with examples of common tasks. -->
<div class="table-responsive">
<div class="table-responsive">
{| class="wikitable"
{| class="wikitable"
Line 162: Line 160:
|Install a particular version of a package
|Install a particular version of a package
|<syntaxhighlight lang="console">$ apt-get install package=version</syntaxhighlight>
|<syntaxhighlight lang="console">$ apt-get install package=version</syntaxhighlight>
|Although Nix on its own doesn't understand the concept of package versioning, you can install and play with older (or newer!) software via https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs with https://lazamar.co.uk/nix-versions.
|Although Nix on its own doesn't understand the concept of package versioning, you can install and play with older (or newer!) software via [[FAQ/Pinning Nixpkgs]] with https://lazamar.co.uk/nix-versions.




142

edits