Ubuntu vs. NixOS: Difference between revisions
fix links |
see also added |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<!-- 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 104: | Line 102: | ||
|<syntaxhighlight lang="console">$ sudo apt-get update</syntaxhighlight> | |<syntaxhighlight lang="console">$ sudo apt-get update</syntaxhighlight> | ||
|<syntaxhighlight lang="console">$ sudo nix-channel --update</syntaxhighlight> | |<syntaxhighlight lang="console">$ sudo nix-channel --update</syntaxhighlight> | ||
|<syntaxhighlight lang="console">$nix-channel --update</syntaxhighlight> | |<syntaxhighlight lang="console">$ nix-channel --update</syntaxhighlight> | ||
|- | |- | ||
|Upgrade packages | |Upgrade packages | ||
| Line 290: | Line 288: | ||
|Install dpkg with Nix, then <syntaxhighlight lang="bash">dpkg -i package.deb</syntaxhighlight> While this is technically possible it will in all likelihood not work. | |Install dpkg with Nix, then <syntaxhighlight lang="bash">dpkg -i package.deb</syntaxhighlight> While this is technically possible it will in all likelihood not work. | ||
|} | |} | ||
</div> | |||
== See also == | |||
* [[Cheatsheet]] | |||
* https://nixcademy.com/cheatsheet/ | |||
** https://nixcademy.com/downloads/cheatsheet.pdf | |||
[[Category:Cookbook]] | |||