Installing packages in a virtual environment (not Python) using in-built package manager
2
votes
0
answers
225
views
I want to install packages in Linux via in-built package managers like
portage
for Gentoo
or pacman
for Arch. This is not regarding Python packages. I want to set up a virtual environment where all the dependencies and the package itself is installed only in that virtual environment and as soon as the virtual environment is thrown away, everything must go away. I want this because, I don't want any make
commands or any other way of install like emerge
or pacman -S
to affect the directories I work with now i.e. they must be only for a single time use. Many times, it is hard to find where the make
command extracts and installs the software and necessary files. Since it is only for a single-time use, I don't want those unnecessary dependencies to take up the space in my hard drive. By using a virtual environment, I don't care where the packages, dependencies and other files are installed as they all can be demolished by just deleting the virtual environment.
How to achieve this?
Asked by Suzuna Minami
(141 rep)
Jan 23, 2022, 06:50 AM