You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Difference between revisions of "Help:Toolforge/Fakechroot"

From Wikitech-static
Jump to navigation Jump to search
imported>Dvorapa
m (top)
 
imported>Quiddity
m (fixes)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Warning|This page describes a complex and advanced use of Toolforge. It is not a recommended best practice and is not officially supported by the Toolforge administration team.}}
{{Warning|This page describes a complex and advanced use of Toolforge. It is not a recommended best practice and is not officially supported by the Toolforge administration team.}}
{{Toolforge nav}}
== Overview ==
This page is intended for advanced users. The processes described are not officially supported by the Toolforge adminstrative team.
== Installing packages versions using fakechroot ==


To install a different package version, any other missing package, different Debian version or even a different Linux distribution you can use '''fakechroot environment'''.
To install a different package version, any other missing package, different Debian version or even a different Linux distribution you can use '''fakechroot environment'''.
Line 5: Line 12:
You can ''create'' your fakechroot environment in ''my_env'' folder using:
You can ''create'' your fakechroot environment in ''my_env'' folder using:


<source lang=shell-session>
<syntaxhighlight lang=shell-session>
$ fakechroot
$ fakechroot
(fakechroot) $ fakeroot
(fakechroot) $ fakeroot
(fakeroot) $ /usr/sbin/debootstrap --variant=fakechroot stretch my_env
(fakeroot) $ /usr/sbin/debootstrap --variant=fakechroot stretch my_env
</source>
</syntaxhighlight>


This will install package manager, some basic tools, commands and prerequisites, everything into your new fakechroot unit.
This will install package manager, some basic tools, commands and prerequisites, everything into your new fakechroot unit.
Line 15: Line 22:
Once you created one, let's use it and play with it:
Once you created one, let's use it and play with it:


<source lang=shell-session>
<syntaxhighlight lang=shell-session>
(fakeroot) $ chroot my_env
(fakeroot) $ chroot my_env


(chroot) $ apt install ffmpeg
(chroot) $ apt install ffmpeg
...
...
</source>
</syntaxhighlight>


Once you are happy with it, you can always leave using:
Once you are happy with it, you can always leave using:


<source lang=shell-session>
<syntaxhighlight lang=shell-session>
(chroot) $ exit
(chroot) $ exit
(fakeroot) $ exit
(fakeroot) $ exit
(fakechroot) $ exit
(fakechroot) $ exit
</source>
</syntaxhighlight>


== See also ==
== See also ==
* [https://wiki.debian.org/fakechroot Debian wiki]
* [https://wiki.debian.org/fakechroot Debian wiki]
* [https://github.com/dex4er/fakechroot/wiki GitHub wiki]
* [https://github.com/dex4er/fakechroot/wiki GitHub wiki]
{{:Help:Cloud Services communication}}


[[Category:Toolforge|Fakechroot]]
[[Category:Toolforge|Fakechroot]]
[[Category:Documentation]]
[[Category:Cloud Services]]

Latest revision as of 19:13, 4 September 2021

Overview

This page is intended for advanced users. The processes described are not officially supported by the Toolforge adminstrative team.

Installing packages versions using fakechroot

To install a different package version, any other missing package, different Debian version or even a different Linux distribution you can use fakechroot environment.

You can create your fakechroot environment in my_env folder using:

$ fakechroot
(fakechroot) $ fakeroot
(fakeroot) $ /usr/sbin/debootstrap --variant=fakechroot stretch my_env

This will install package manager, some basic tools, commands and prerequisites, everything into your new fakechroot unit.

Once you created one, let's use it and play with it:

(fakeroot) $ chroot my_env

(chroot) $ apt install ffmpeg
...

Once you are happy with it, you can always leave using:

(chroot) $ exit
(fakeroot) $ exit
(fakechroot) $ exit

See also

Communication and support

We communicate and provide support through several primary channels. Please reach out with questions and to join the conversation.

Communicate with us
Way Connect Best for
Phabricator Workboard #Cloud-Services Task tracking and bug reporting
IRC Channel #wikimedia-cloud connect
Telegram bridge
mattermost bridge
General discussion and support
Mailing List cloud@ Information about ongoing initiatives, general discussion and support
Announcement emails cloud-announce@ Information about critical changes (all messages mirrored to cloud@)
News wiki page News Information about major near-term plans
Cloud Services Blog Clouds & Unicorns Learning more details about some of our work
Wikimedia Technical Blog techblog.wikimedia.org News and stories from the Wikimedia technical movement