How can I keep my web development environment stable when updating Linux?

August 20, 2026 4 answers
Asked by !+fossil imprint~
I'm moving from Windows to Linux and want to become a full-stack web developer. I was surprised to learn that installing packages through the system package manager can also update installed software during operating system updates. What's the best way to set up my development environment so tool and package versions remain stable and separate from the base system? I'm currently using CachyOS and am still learning how package management and development environments work.

Answers

tAble_tennis
It helps to distinguish system packages from project dependencies. Let the system package manager update core operating-system software, but pin or lock application dependencies inside each project. Save the projectโ€™s dependency files and setup instructions in version control so you can recreate the environment if necessary.
Reply to this answer
aside.from.that
Keep development tools in your home directory when practical, using a version manager to install and switch between Node, Python, or other tool versions. This separates them from system packages, so operating system updates are less likely to change your project setup. For databases and other services, containers such as Docker can provide an isolated, reproducible environment.
Reply to this answer
58 harbor ferries
For Python, use virtual environments so each project can have its own interpreter and dependency versions without affecting the system installation. For Node-based web development, packages are generally installed per project by default, using the projectโ€™s package manifest and lockfile, rather than globally.
Reply to this answer
checksum.valid
The exact details depend on the distribution and stack, but CachyOS is Arch-based, so system updates will normally keep installed packages current. Rather than trying to freeze the entire operating system, isolate your development environment with per-project virtual environments, language version managers, lockfiles, and containers where appropriate.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions