<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=LAC-Tech</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=LAC-Tech"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/LAC-Tech"/>
	<updated>2026-05-01T02:49:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Flatpak&amp;diff=24189</id>
		<title>Flatpak</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Flatpak&amp;diff=24189"/>
		<updated>2023-08-11T09:38:30Z</updated>

		<summary type="html">&lt;p&gt;LAC-Tech: /* Runtime dependencies */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Draft|More documentation and testing is needed, but everything currently here should be safe to follow.}}&lt;br /&gt;
&lt;br /&gt;
Flatpak is a technology for building and distributing applications with the goal of having a universal package format for all Linux distributons, it is similar to [https://en.wikipedia.org/wiki/Snap_(software) Snap], &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setup / Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Runtime dependencies ===&lt;br /&gt;
&lt;br /&gt;
- dbus&lt;br /&gt;
&lt;br /&gt;
- xdg-desktop-portal&lt;br /&gt;
&lt;br /&gt;
- an implementation of xdg-desktop-portal, eg xdg-desktop-portal-gtk&lt;br /&gt;
&lt;br /&gt;
Note if you are running a window manager from .xinitrc, make sure you are running a dbus session explicitly, ie:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
exec dbus-launch --exit-with-session your_favourite_wm&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing Flatpak Itself ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;From: https://flatpak.org/setup/Alpine/&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{Note|To install Flatpak you will need to enable the  Community repository, See: [[Repositories#Managing_repositories|Repositories - Managing repositories]]}}&lt;br /&gt;
&lt;br /&gt;
To install Flatpak run:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add {{Pkg|flatpak}}}}&lt;br /&gt;
&lt;br /&gt;
Next you need to add a repository, for this guide we will use the recommended repository, [https://flathub.org Flathub].&lt;br /&gt;
&lt;br /&gt;
{{cmd|$ flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo}}&lt;br /&gt;
&lt;br /&gt;
Now reboot to complete setup&lt;br /&gt;
&lt;br /&gt;
{{Note|graphical installation of Flatpak apps may not be possible with Alpine.}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
To get all of the available options to use with the &#039;&#039;&#039;flatpak&#039;&#039;&#039; command run: &#039;&#039;&#039;flatpak --help&#039;&#039;&#039; or &#039;&#039;&#039;flatpak -h&#039;&#039;&#039;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Search ===&lt;br /&gt;
&lt;br /&gt;
To search for applications run &#039;&#039;&#039;flatpak search &amp;lt;appplicationname&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak search chromium&lt;br /&gt;
&lt;br /&gt;
Name                   Description                                                        Application ID                        Version       Branch  Remotes&lt;br /&gt;
Chromium Web Browser   The web browser from Chromium project                              org.chromium.Chromium                 96.0.4664.93  stable  flathub&lt;br /&gt;
Chromium B.S.U.        Fast paced, arcade-style, top-scrolling space shooter              net.sourceforge.chromium-bsu          0.9.16.1      stable  flathub&lt;br /&gt;
ungoogled-chromium     A lightweight approach to removing Google web service dependency   com.github.Eloston.UngoogledChromium  96.0.4664.45  stable  flathub&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
To install a package run &#039;&#039;&#039;flatpak install &amp;lt;applicationname&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak install com.github.Eloston.UngoogledChromium&lt;br /&gt;
&lt;br /&gt;
Looking for matches…&lt;br /&gt;
&lt;br /&gt;
com.github.Eloston.UngoogledChromium permissions:&lt;br /&gt;
    ipc             network                 cups                   pulseaudio               wayland                       x11&lt;br /&gt;
    devices         file access [1]         dbus access [2]        bus ownership [3]        system dbus access [4]&lt;br /&gt;
&lt;br /&gt;
    [1] /run/.heim_org.h5l.kcm-socket, home, xdg-run/pipewire-0&lt;br /&gt;
    [2] org.freedesktop.FileManager1, org.freedesktop.Notifications, org.freedesktop.secrets, org.gnome.SessionManager&lt;br /&gt;
    [3] org.mpris.MediaPlayer2.chromium.*&lt;br /&gt;
    [4] org.freedesktop.Avahi, org.freedesktop.UPower&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        ID                                                      Branch             Op            Remote             Download&lt;br /&gt;
 1.     com.github.Eloston.UngoogledChromium.Codecs             stable             i             flathub              &amp;lt; 1.1 MB&lt;br /&gt;
 2.     com.github.Eloston.UngoogledChromium.Locale             stable             i             flathub            &amp;lt; 112.8 kB&lt;br /&gt;
 3.     com.github.Eloston.UngoogledChromium                    stable             i             flathub            &amp;lt; 119.0 MB&lt;br /&gt;
&lt;br /&gt;
Proceed with these changes to the system installation? [Y/n]:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or if you dont know or dont want to type the exact package name:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak install chromium&lt;br /&gt;
&lt;br /&gt;
Looking for matches…&lt;br /&gt;
Similar refs found for ‘chromium’ in remote ‘flathub’ (system):&lt;br /&gt;
&lt;br /&gt;
   1) app/net.sourceforge.chromium-bsu/x86_64/stable&lt;br /&gt;
   2) runtime/com.github.Eloston.UngoogledChromium.Codecs/x86_64/stable&lt;br /&gt;
   3) runtime/org.chromium.Chromium.Codecs/x86_64/stable&lt;br /&gt;
   4) app/org.chromium.Chromium/x86_64/stable&lt;br /&gt;
   5) app/com.github.Eloston.UngoogledChromium/x86_64/stable&lt;br /&gt;
&lt;br /&gt;
Which do you want to use (0 to abort)? [0-5]:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remove ===&lt;br /&gt;
&lt;br /&gt;
To remove a package run: &#039;&#039;&#039;flatpak remove &amp;lt;applicationname&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak remove com.github.Eloston.UngoogledChromium&lt;br /&gt;
&lt;br /&gt;
        ID                                                     Branch           Op&lt;br /&gt;
 1.     com.github.Eloston.UngoogledChromium                   stable           r&lt;br /&gt;
 2.     com.github.Eloston.UngoogledChromium.Codecs            stable           r&lt;br /&gt;
 3.     com.github.Eloston.UngoogledChromium.Locale            stable           r&lt;br /&gt;
&lt;br /&gt;
Proceed with these changes to the system installation? [Y/n]:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
or if you dont know or dont want to type the exact package name:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak remove chromium&lt;br /&gt;
&lt;br /&gt;
Similar installed refs found for ‘chromium’:&lt;br /&gt;
&lt;br /&gt;
   1) app/com.github.Eloston.UngoogledChromium/x86_64/stable (system)&lt;br /&gt;
   2) runtime/com.github.Eloston.UngoogledChromium.Codecs/x86_64/stable (system)&lt;br /&gt;
   3) All of the above&lt;br /&gt;
&lt;br /&gt;
Which do you want to use (0 to abort)? [0-3]:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Developers ==&lt;br /&gt;
&lt;br /&gt;
* [https://docs.flatpak.org/en/latest/available-runtimes.html Flatpak - available runtimes]&lt;br /&gt;
&lt;br /&gt;
These are all hosted on [https://flathub.org/ Flathub.org].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Permission errors ===&lt;br /&gt;
&lt;br /&gt;
If you receive errors about permissions then you may need to add your user to the &#039;&#039;&#039;flatpak&#039;&#039;&#039; group.&lt;br /&gt;
&lt;br /&gt;
{{Note|You need to log out and log back in or reboot for the group change(s) to take effect}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Fixing audio issues ===&lt;br /&gt;
&lt;br /&gt;
If you have a minimal setup and don&#039;t have access to audio devices you will need to set the XDG_RUNTIME_DIR variable. Save the following script in {{Path|/etc/profile.d/xdg_runtime_dir.sh}} and re-login to have it set up properly.&lt;br /&gt;
&lt;br /&gt;
 if test -z &amp;quot;${XDG_RUNTIME_DIR}&amp;quot;; then&lt;br /&gt;
   export XDG_RUNTIME_DIR=/tmp/$(id -u)&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
When you launch a Flatpak you will need to start pulseaudio as well:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|$ pulseaudio --start &amp;amp;&amp;amp; flatpak run com.example.Example}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* [https://flatpak.org/ Flatpak]&lt;br /&gt;
* [https://flathub.org/ Flathub]&lt;br /&gt;
* [https://winepak.github.io/ Winepak]&lt;br /&gt;
&lt;br /&gt;
[[Category:Package Manager]]&lt;br /&gt;
[[Category: Desktop]]&lt;/div&gt;</summary>
		<author><name>LAC-Tech</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Flatpak&amp;diff=24021</id>
		<title>Flatpak</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Flatpak&amp;diff=24021"/>
		<updated>2023-08-02T23:15:51Z</updated>

		<summary type="html">&lt;p&gt;LAC-Tech: /* Setup / Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Draft|More documentation and testing is needed, but everything currently here should be safe to follow.}}&lt;br /&gt;
&lt;br /&gt;
Flatpak is a technology for building and distributing applications with the goal of having a universal package format for all Linux distributons, it is similar to [https://en.wikipedia.org/wiki/Snap_(software) Snap], &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setup / Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Runtime dependencies ===&lt;br /&gt;
&lt;br /&gt;
- dbus&lt;br /&gt;
&lt;br /&gt;
- xdg-desktop-portal&lt;br /&gt;
&lt;br /&gt;
- an implementation of xdg-desktop-portal, ie xdg-desktop-portal-gtk&lt;br /&gt;
&lt;br /&gt;
=== Installing Flatpak Itself ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;From: https://flatpak.org/setup/Alpine/&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{Note|To install Flatpak you will need to enable the  Community repository, See: [[Repositories#Managing_repositories|Repositories - Managing repositories]]}}&lt;br /&gt;
&lt;br /&gt;
To install Flatpak run:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add {{Pkg|flatpak}}}}&lt;br /&gt;
&lt;br /&gt;
Next you need to add a repository, for this guide we will use the recommended repository, [https://flathub.org Flathub].&lt;br /&gt;
&lt;br /&gt;
{{cmd|$ flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo}}&lt;br /&gt;
&lt;br /&gt;
Now reboot to complete setup&lt;br /&gt;
&lt;br /&gt;
{{Note|graphical installation of Flatpak apps may not be possible with Alpine.}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
To get all of the available options to use with the &#039;&#039;&#039;flatpak&#039;&#039;&#039; command run: &#039;&#039;&#039;flatpak --help&#039;&#039;&#039; or &#039;&#039;&#039;flatpak -h&#039;&#039;&#039;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Search ===&lt;br /&gt;
&lt;br /&gt;
To search for applications run &#039;&#039;&#039;flatpak search &amp;lt;appplicationname&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak search chromium&lt;br /&gt;
&lt;br /&gt;
Name                   Description                                                        Application ID                        Version       Branch  Remotes&lt;br /&gt;
Chromium Web Browser   The web browser from Chromium project                              org.chromium.Chromium                 96.0.4664.93  stable  flathub&lt;br /&gt;
Chromium B.S.U.        Fast paced, arcade-style, top-scrolling space shooter              net.sourceforge.chromium-bsu          0.9.16.1      stable  flathub&lt;br /&gt;
ungoogled-chromium     A lightweight approach to removing Google web service dependency   com.github.Eloston.UngoogledChromium  96.0.4664.45  stable  flathub&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
To install a package run &#039;&#039;&#039;flatpak install &amp;lt;applicationname&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak install com.github.Eloston.UngoogledChromium&lt;br /&gt;
&lt;br /&gt;
Looking for matches…&lt;br /&gt;
&lt;br /&gt;
com.github.Eloston.UngoogledChromium permissions:&lt;br /&gt;
    ipc             network                 cups                   pulseaudio               wayland                       x11&lt;br /&gt;
    devices         file access [1]         dbus access [2]        bus ownership [3]        system dbus access [4]&lt;br /&gt;
&lt;br /&gt;
    [1] /run/.heim_org.h5l.kcm-socket, home, xdg-run/pipewire-0&lt;br /&gt;
    [2] org.freedesktop.FileManager1, org.freedesktop.Notifications, org.freedesktop.secrets, org.gnome.SessionManager&lt;br /&gt;
    [3] org.mpris.MediaPlayer2.chromium.*&lt;br /&gt;
    [4] org.freedesktop.Avahi, org.freedesktop.UPower&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        ID                                                      Branch             Op            Remote             Download&lt;br /&gt;
 1.     com.github.Eloston.UngoogledChromium.Codecs             stable             i             flathub              &amp;lt; 1.1 MB&lt;br /&gt;
 2.     com.github.Eloston.UngoogledChromium.Locale             stable             i             flathub            &amp;lt; 112.8 kB&lt;br /&gt;
 3.     com.github.Eloston.UngoogledChromium                    stable             i             flathub            &amp;lt; 119.0 MB&lt;br /&gt;
&lt;br /&gt;
Proceed with these changes to the system installation? [Y/n]:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or if you dont know or dont want to type the exact package name:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak install chromium&lt;br /&gt;
&lt;br /&gt;
Looking for matches…&lt;br /&gt;
Similar refs found for ‘chromium’ in remote ‘flathub’ (system):&lt;br /&gt;
&lt;br /&gt;
   1) app/net.sourceforge.chromium-bsu/x86_64/stable&lt;br /&gt;
   2) runtime/com.github.Eloston.UngoogledChromium.Codecs/x86_64/stable&lt;br /&gt;
   3) runtime/org.chromium.Chromium.Codecs/x86_64/stable&lt;br /&gt;
   4) app/org.chromium.Chromium/x86_64/stable&lt;br /&gt;
   5) app/com.github.Eloston.UngoogledChromium/x86_64/stable&lt;br /&gt;
&lt;br /&gt;
Which do you want to use (0 to abort)? [0-5]:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remove ===&lt;br /&gt;
&lt;br /&gt;
To remove a package run: &#039;&#039;&#039;flatpak remove &amp;lt;applicationname&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak remove com.github.Eloston.UngoogledChromium&lt;br /&gt;
&lt;br /&gt;
        ID                                                     Branch           Op&lt;br /&gt;
 1.     com.github.Eloston.UngoogledChromium                   stable           r&lt;br /&gt;
 2.     com.github.Eloston.UngoogledChromium.Codecs            stable           r&lt;br /&gt;
 3.     com.github.Eloston.UngoogledChromium.Locale            stable           r&lt;br /&gt;
&lt;br /&gt;
Proceed with these changes to the system installation? [Y/n]:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
or if you dont know or dont want to type the exact package name:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak remove chromium&lt;br /&gt;
&lt;br /&gt;
Similar installed refs found for ‘chromium’:&lt;br /&gt;
&lt;br /&gt;
   1) app/com.github.Eloston.UngoogledChromium/x86_64/stable (system)&lt;br /&gt;
   2) runtime/com.github.Eloston.UngoogledChromium.Codecs/x86_64/stable (system)&lt;br /&gt;
   3) All of the above&lt;br /&gt;
&lt;br /&gt;
Which do you want to use (0 to abort)? [0-3]:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Developers ==&lt;br /&gt;
&lt;br /&gt;
* [https://docs.flatpak.org/en/latest/available-runtimes.html Flatpak - available runtimes]&lt;br /&gt;
&lt;br /&gt;
These are all hosted on [https://flathub.org/ Flathub.org].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Permission errors ===&lt;br /&gt;
&lt;br /&gt;
If you receive errors about permissions then you may need to add your user to the &#039;&#039;&#039;flatpak&#039;&#039;&#039; group.&lt;br /&gt;
&lt;br /&gt;
{{Note|You need to log out and log back in or reboot for the group change(s) to take effect}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Fixing audio issues ===&lt;br /&gt;
&lt;br /&gt;
If you have a minimal setup and don&#039;t have access to audio devices you will need to set the XDG_RUNTIME_DIR variable. Save the following script in {{Path|/etc/profile.d/xdg_runtime_dir.sh}} and re-login to have it set up properly.&lt;br /&gt;
&lt;br /&gt;
 if test -z &amp;quot;${XDG_RUNTIME_DIR}&amp;quot;; then&lt;br /&gt;
   export XDG_RUNTIME_DIR=/tmp/$(id -u)&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
When you launch a Flatpak you will need to start pulseaudio as well:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|$ pulseaudio --start &amp;amp;&amp;amp; flatpak run com.example.Example}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* [https://flatpak.org/ Flatpak]&lt;br /&gt;
* [https://flathub.org/ Flathub]&lt;br /&gt;
* [https://winepak.github.io/ Winepak]&lt;br /&gt;
&lt;br /&gt;
[[Category:Package Manager]]&lt;br /&gt;
[[Category: Desktop]]&lt;/div&gt;</summary>
		<author><name>LAC-Tech</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Elogind&amp;diff=23688</id>
		<title>Elogind</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Elogind&amp;diff=23688"/>
		<updated>2023-06-29T03:24:46Z</updated>

		<summary type="html">&lt;p&gt;LAC-Tech: I&amp;#039;ve had this issue in at least 3 different installs - this is how you get hibernate to work&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://github.com/elogind/elogind &#039;&#039;&#039;elogind&#039;&#039;&#039;] is a login manager and provides support for &lt;br /&gt;
&lt;br /&gt;
* setting up necessary permissions for the desktop environment or window manager&lt;br /&gt;
* handling poweroff, reboot, suspend and hibernate via &#039;&#039;&#039;loginctl&#039;&#039;&#039; command&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# apk add {{Pkg|elogind}} {{Pkg|polkit-elogind}}&lt;br /&gt;
# rc-update add elogind&lt;br /&gt;
# rc-service elogind start }}&lt;br /&gt;
&lt;br /&gt;
Set up a [[PAM]] login.&lt;br /&gt;
&lt;br /&gt;
== Hibernating ==&lt;br /&gt;
&lt;br /&gt;
For {{Cmd|# loginctl hibernate}} to work, you must have a swap partition. Check {{Cmd|# lsblk}} for a partition with the mountpoint [SWAP].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS&lt;br /&gt;
nvme0n1     259:0    0 953.9G  0 disk &lt;br /&gt;
├─nvme0n1p1 259:1    0   200M  0 part /boot&lt;br /&gt;
├─nvme0n1p2 259:2    0   100G  0 part /&lt;br /&gt;
├─nvme0n1p3 259:3    0   805G  0 part /home&lt;br /&gt;
└─nvme0n1p4 259:4    0  48.7G  0 part [SWAP]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remember also to add a kernel parameter to resume, ie in {{Path|/etc/default/grub}} :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GRUB_TIMEOUT=2&lt;br /&gt;
GRUB_DISABLE_SUBMENU=y&lt;br /&gt;
GRUB_DISABLE_RECOVERY=true&lt;br /&gt;
GRUB_CMDLINE_LINUX_DEFAULT=&amp;quot;modules=sd-mod,usb-storage,ext4,nvme quiet rootfstype=ext4 resume=/dev/nvme0n1p4&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note the &amp;quot;resume=&amp;quot; flag with the same partition that was marked as [SWAP].&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
=== logind.conf ===&lt;br /&gt;
&lt;br /&gt;
Edit {{Path|/etc/elogind/logind.conf}} to configure handling of power events, such as suspending the computer when power button is pressed:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&amp;lt;nowiki&amp;gt;# sed -i &#039;s|#HandlePowerKey=poweroff|HandlePowerKey=suspend|&#039; /etc/elogind/logind.conf&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
=== Working with Desktop Environments ===&lt;br /&gt;
&lt;br /&gt;
If using a Window Manager or Desktop Environment, such as [[Sway]], the user must ensure that login session is correctly configured.  When correctly configured, the &amp;lt;code&amp;gt;loginctl&amp;lt;/code&amp;gt; command should output the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Using [[Sway]] and [[SDDM]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; loginctl&lt;br /&gt;
&lt;br /&gt;
SESSION  UID USER SEAT  TTY &lt;br /&gt;
     c1  105 sddm seat0     &lt;br /&gt;
     c2 1000 User seat0 tty8&lt;br /&gt;
&lt;br /&gt;
2 sessions listed.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the output is &amp;lt;code&amp;gt;No session available.&amp;lt;/code&amp;gt;, such as in the case of launching Sway from tty, suspend and many other functionality will not work.  The user then must configure a display manager such as {{Pkg|greetd}}, [[SDDM]] or {{Pkg|lightdm|LightDM}}.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [https://wiki.gentoo.org/wiki/Elogind elogind - Gentoo Wiki]&lt;br /&gt;
&lt;br /&gt;
[[Category:Desktop]]&lt;/div&gt;</summary>
		<author><name>LAC-Tech</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Software_management&amp;diff=19576</id>
		<title>Software management</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Software_management&amp;diff=19576"/>
		<updated>2021-06-01T02:47:00Z</updated>

		<summary type="html">&lt;p&gt;LAC-Tech: /* Your options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you want to run [https://www.gnu.org/software/libc/ glibc] programs in Alpine Linux, there are a few ways of doing so.  You could install glibc as additional to [https://musl.libc.org/ musl] (you would have to do this manually), or you could do it the easy way and use either Flatpak (the easiest) or a chroot.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because there are different use cases, this is just a slight overview about what&#039;s possible and what&#039;s intelligent.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Your options =&lt;br /&gt;
&lt;br /&gt;
== gcompat ==&lt;br /&gt;
&lt;br /&gt;
[https://git.adelielinux.org/adelie/gcompat gcompat] is the go-to compatibility layer for Alpine users.&lt;br /&gt;
&lt;br /&gt;
 apk add gcompat&lt;br /&gt;
&lt;br /&gt;
After that you run your binaries as normal.&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
Flatpak is by far the easiest method of running any graphical glibc program on Alpine.&lt;br /&gt;
Firstly install it.&lt;br /&gt;
&lt;br /&gt;
 sudo apk add flatpak&lt;br /&gt;
&lt;br /&gt;
Then you can run any Flatpak application:&lt;br /&gt;
&lt;br /&gt;
 flatpak run &amp;lt;flatpak name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is recommended to enable [https://flathub.org Flathub] using it&#039;s instructions [https://flatpak.org/setup/Alpine/ here], as most glibc programs you might need will be packaged there.&lt;br /&gt;
&lt;br /&gt;
You can then install applications from it, for example:&lt;br /&gt;
&lt;br /&gt;
 flatpak install com.valvesoftware.Steam&lt;br /&gt;
&lt;br /&gt;
== Chroot ==&lt;br /&gt;
&lt;br /&gt;
=== Gentoo Linux ===&lt;br /&gt;
&lt;br /&gt;
Select a stage3 from [https://www.gentoo.org/downloads/ here] and portage latest from [https://www.gentoo.org/downloads/mirrors/ here] at gentoo/snapshots/portage-latest.tar.xz.&lt;br /&gt;
&lt;br /&gt;
First,&lt;br /&gt;
&lt;br /&gt;
 sudo apk add xz&lt;br /&gt;
&lt;br /&gt;
Enter the chroot:&lt;br /&gt;
 mkdir ~/chroot&lt;br /&gt;
 cd ~/chroot&lt;br /&gt;
 tar -xvf stage3-*.tar.xz&lt;br /&gt;
 tar -xvf portage-latest.tar.xz&lt;br /&gt;
 mv portage usr&lt;br /&gt;
 sudo mount --bind /dev dev&lt;br /&gt;
 sudo mount --bind /sys sys&lt;br /&gt;
 sudo mount -t proc proc proc&lt;br /&gt;
 cp /etc/resolv.conf etc&lt;br /&gt;
 sudo chroot . /bin/bash&lt;br /&gt;
&lt;br /&gt;
And voilà, you have your working Gentoo chroot!&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now take a look at [https://wiki.gentoo.org/wiki/Handbook:Main_Page Gentoo&#039;s Handbook] to find out how you can configure and install your system, or simply extract/copy the program you need to run in your chroot enviroment and execute it.&lt;br /&gt;
&lt;br /&gt;
Here is a wrapper script that is similar to &amp;lt;code&amp;gt;arch-chroot&amp;lt;/code&amp;gt; when you frequently reuse this chroot:&lt;br /&gt;
&lt;br /&gt;
Also, create an account with the same user name as host current user to the chroot or make changes to the userspec option to chroot line.&lt;br /&gt;
&lt;br /&gt;
{{Cat|gentoo-chroot.sh|&amp;lt;nowiki&amp;gt;!/bin/bash&lt;br /&gt;
CHROOT_PATH=&amp;quot;/home/$USER/chroot&amp;quot;&lt;br /&gt;
cd $CHROOT_PATH&lt;br /&gt;
mount | grep $CHROOT_PATH/dev || sudo mount --bind /dev dev&lt;br /&gt;
mount | grep $CHROOT_PATH/sys || sudo mount --bind /sys sys&lt;br /&gt;
mount | grep $CHROOT_PATH/proc || sudo mount -t proc proc proc&lt;br /&gt;
cp /etc/resolv.conf etc&lt;br /&gt;
sudo chroot --userspec=$USER:users . /bin/bash&lt;br /&gt;
echo &amp;quot;You must manually unmount $CHROOT_PATH/dev, $CHROOT_PATH/sys, $CHROOT_PATH/proc.&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Do at &amp;lt;code&amp;gt;chmod +x gentoo-chroot.sh&amp;lt;/code&amp;gt; to get it to work.&lt;br /&gt;
&lt;br /&gt;
=== Arch Linux ===&lt;br /&gt;
&lt;br /&gt;
Either use &#039;&#039;&#039;pacstrap&#039;&#039;&#039; (included with the arch-install-scripts package) or an Arch bootstrap image:&lt;br /&gt;
&lt;br /&gt;
  sudo apk add arch-install-scripts&lt;br /&gt;
  mkdir ~/chroot &amp;amp;&amp;amp; cd ~/chroot&lt;br /&gt;
  curl -O https://mirrors.edge.kernel.org/archlinux/iso/latest/archlinux-bootstrap-2021.04.01-x86_64.tar.gz&lt;br /&gt;
  sudo tar xzf archlinux-bootstrap-2021.04.01-x86_64.tar.gz &amp;amp;&amp;amp; rm archlinux-bootstrap-2021.04.01-x86_64.tar.gz&lt;br /&gt;
  sudo sed -i &#039;/evowise/s/^#//&#039; root.x86_64/etc/pacman.d/mirrorlist&lt;br /&gt;
  sudo sed -i &#039;/CheckSpace/s/^/#/&#039; root.x86_64/etc/pacman.conf&lt;br /&gt;
  sudo arch-chroot root.x86_64&lt;br /&gt;
  [chroot]# pacman-key --init&lt;br /&gt;
  [chroot]# pacman-key --populate archlinux&lt;br /&gt;
&lt;br /&gt;
Once that is done, update the system and install the desired package(s) (denoted by &#039;&#039;&amp;quot;foo&amp;quot;&#039;&#039; in this example):&lt;br /&gt;
  &lt;br /&gt;
  [chroot]# pacman -Syu &#039;&#039;foo&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
&lt;br /&gt;
Use the provided debootstrap package to create the Debian chroot. &amp;lt;code&amp;gt;--arch&amp;lt;/code&amp;gt; is optional, depending of your needs.&lt;br /&gt;
&lt;br /&gt;
On the &#039;&#039;&#039;linux-grsec&#039;&#039;&#039; kernel, you will need to relax chroot limitations:&lt;br /&gt;
&lt;br /&gt;
  sudo apk add debootstrap&lt;br /&gt;
  for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 0 | sudo tee $i; done&lt;br /&gt;
  mkdir ~/chroot&lt;br /&gt;
  sudo debootstrap --arch=i386 wheezy ~/chroot http://http.debian.net/debian/&lt;br /&gt;
  for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 1 | sudo tee $i; done&lt;br /&gt;
  sudo chroot ~/chroot /bin/bash&lt;br /&gt;
&lt;br /&gt;
You can now use &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; to install needed packages.&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>LAC-Tech</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Software_management&amp;diff=19575</id>
		<title>Software management</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Software_management&amp;diff=19575"/>
		<updated>2021-06-01T02:46:39Z</updated>

		<summary type="html">&lt;p&gt;LAC-Tech: /* gcompat */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you want to run [https://www.gnu.org/software/libc/ glibc] programs in Alpine Linux, there are a few ways of doing so.  You could install glibc as additional to [https://musl.libc.org/ musl] (you would have to do this manually), or you could do it the easy way and use either Flatpak (the easiest) or a chroot.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because there are different use cases, this is just a slight overview about what&#039;s possible and what&#039;s intelligent.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Your options =&lt;br /&gt;
&lt;br /&gt;
[https://git.adelielinux.org/adelie/gcompat gcompat] is the go-to compatibility layer for Alpine users.&lt;br /&gt;
&lt;br /&gt;
 apk add gcompat&lt;br /&gt;
&lt;br /&gt;
After that you run your binaries as normal.&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
Flatpak is by far the easiest method of running any graphical glibc program on Alpine.&lt;br /&gt;
Firstly install it.&lt;br /&gt;
&lt;br /&gt;
 sudo apk add flatpak&lt;br /&gt;
&lt;br /&gt;
Then you can run any Flatpak application:&lt;br /&gt;
&lt;br /&gt;
 flatpak run &amp;lt;flatpak name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is recommended to enable [https://flathub.org Flathub] using it&#039;s instructions [https://flatpak.org/setup/Alpine/ here], as most glibc programs you might need will be packaged there.&lt;br /&gt;
&lt;br /&gt;
You can then install applications from it, for example:&lt;br /&gt;
&lt;br /&gt;
 flatpak install com.valvesoftware.Steam&lt;br /&gt;
&lt;br /&gt;
== Chroot ==&lt;br /&gt;
&lt;br /&gt;
=== Gentoo Linux ===&lt;br /&gt;
&lt;br /&gt;
Select a stage3 from [https://www.gentoo.org/downloads/ here] and portage latest from [https://www.gentoo.org/downloads/mirrors/ here] at gentoo/snapshots/portage-latest.tar.xz.&lt;br /&gt;
&lt;br /&gt;
First,&lt;br /&gt;
&lt;br /&gt;
 sudo apk add xz&lt;br /&gt;
&lt;br /&gt;
Enter the chroot:&lt;br /&gt;
 mkdir ~/chroot&lt;br /&gt;
 cd ~/chroot&lt;br /&gt;
 tar -xvf stage3-*.tar.xz&lt;br /&gt;
 tar -xvf portage-latest.tar.xz&lt;br /&gt;
 mv portage usr&lt;br /&gt;
 sudo mount --bind /dev dev&lt;br /&gt;
 sudo mount --bind /sys sys&lt;br /&gt;
 sudo mount -t proc proc proc&lt;br /&gt;
 cp /etc/resolv.conf etc&lt;br /&gt;
 sudo chroot . /bin/bash&lt;br /&gt;
&lt;br /&gt;
And voilà, you have your working Gentoo chroot!&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now take a look at [https://wiki.gentoo.org/wiki/Handbook:Main_Page Gentoo&#039;s Handbook] to find out how you can configure and install your system, or simply extract/copy the program you need to run in your chroot enviroment and execute it.&lt;br /&gt;
&lt;br /&gt;
Here is a wrapper script that is similar to &amp;lt;code&amp;gt;arch-chroot&amp;lt;/code&amp;gt; when you frequently reuse this chroot:&lt;br /&gt;
&lt;br /&gt;
Also, create an account with the same user name as host current user to the chroot or make changes to the userspec option to chroot line.&lt;br /&gt;
&lt;br /&gt;
{{Cat|gentoo-chroot.sh|&amp;lt;nowiki&amp;gt;!/bin/bash&lt;br /&gt;
CHROOT_PATH=&amp;quot;/home/$USER/chroot&amp;quot;&lt;br /&gt;
cd $CHROOT_PATH&lt;br /&gt;
mount | grep $CHROOT_PATH/dev || sudo mount --bind /dev dev&lt;br /&gt;
mount | grep $CHROOT_PATH/sys || sudo mount --bind /sys sys&lt;br /&gt;
mount | grep $CHROOT_PATH/proc || sudo mount -t proc proc proc&lt;br /&gt;
cp /etc/resolv.conf etc&lt;br /&gt;
sudo chroot --userspec=$USER:users . /bin/bash&lt;br /&gt;
echo &amp;quot;You must manually unmount $CHROOT_PATH/dev, $CHROOT_PATH/sys, $CHROOT_PATH/proc.&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Do at &amp;lt;code&amp;gt;chmod +x gentoo-chroot.sh&amp;lt;/code&amp;gt; to get it to work.&lt;br /&gt;
&lt;br /&gt;
=== Arch Linux ===&lt;br /&gt;
&lt;br /&gt;
Either use &#039;&#039;&#039;pacstrap&#039;&#039;&#039; (included with the arch-install-scripts package) or an Arch bootstrap image:&lt;br /&gt;
&lt;br /&gt;
  sudo apk add arch-install-scripts&lt;br /&gt;
  mkdir ~/chroot &amp;amp;&amp;amp; cd ~/chroot&lt;br /&gt;
  curl -O https://mirrors.edge.kernel.org/archlinux/iso/latest/archlinux-bootstrap-2021.04.01-x86_64.tar.gz&lt;br /&gt;
  sudo tar xzf archlinux-bootstrap-2021.04.01-x86_64.tar.gz &amp;amp;&amp;amp; rm archlinux-bootstrap-2021.04.01-x86_64.tar.gz&lt;br /&gt;
  sudo sed -i &#039;/evowise/s/^#//&#039; root.x86_64/etc/pacman.d/mirrorlist&lt;br /&gt;
  sudo sed -i &#039;/CheckSpace/s/^/#/&#039; root.x86_64/etc/pacman.conf&lt;br /&gt;
  sudo arch-chroot root.x86_64&lt;br /&gt;
  [chroot]# pacman-key --init&lt;br /&gt;
  [chroot]# pacman-key --populate archlinux&lt;br /&gt;
&lt;br /&gt;
Once that is done, update the system and install the desired package(s) (denoted by &#039;&#039;&amp;quot;foo&amp;quot;&#039;&#039; in this example):&lt;br /&gt;
  &lt;br /&gt;
  [chroot]# pacman -Syu &#039;&#039;foo&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
&lt;br /&gt;
Use the provided debootstrap package to create the Debian chroot. &amp;lt;code&amp;gt;--arch&amp;lt;/code&amp;gt; is optional, depending of your needs.&lt;br /&gt;
&lt;br /&gt;
On the &#039;&#039;&#039;linux-grsec&#039;&#039;&#039; kernel, you will need to relax chroot limitations:&lt;br /&gt;
&lt;br /&gt;
  sudo apk add debootstrap&lt;br /&gt;
  for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 0 | sudo tee $i; done&lt;br /&gt;
  mkdir ~/chroot&lt;br /&gt;
  sudo debootstrap --arch=i386 wheezy ~/chroot http://http.debian.net/debian/&lt;br /&gt;
  for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 1 | sudo tee $i; done&lt;br /&gt;
  sudo chroot ~/chroot /bin/bash&lt;br /&gt;
&lt;br /&gt;
You can now use &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; to install needed packages.&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>LAC-Tech</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Software_management&amp;diff=19574</id>
		<title>Software management</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Software_management&amp;diff=19574"/>
		<updated>2021-06-01T02:44:27Z</updated>

		<summary type="html">&lt;p&gt;LAC-Tech: I keep hearing about gcompat on IRC etc, but everyone just comes to this wiki page and is confused. Added it to the top.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you want to run [https://www.gnu.org/software/libc/ glibc] programs in Alpine Linux, there are a few ways of doing so.  You could install glibc as additional to [https://musl.libc.org/ musl] (you would have to do this manually), or you could do it the easy way and use either Flatpak (the easiest) or a chroot.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because there are different use cases, this is just a slight overview about what&#039;s possible and what&#039;s intelligent.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Your options =&lt;br /&gt;
&lt;br /&gt;
== gcompat ==&lt;br /&gt;
&lt;br /&gt;
[Gcompat https://git.adelielinux.org/adelie/gcompat] is widely used by Alpine users.&lt;br /&gt;
&lt;br /&gt;
 apk add gcompat&lt;br /&gt;
&lt;br /&gt;
After that you run your binaries as normal.&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
Flatpak is by far the easiest method of running any graphical glibc program on Alpine.&lt;br /&gt;
Firstly install it.&lt;br /&gt;
&lt;br /&gt;
 sudo apk add flatpak&lt;br /&gt;
&lt;br /&gt;
Then you can run any Flatpak application:&lt;br /&gt;
&lt;br /&gt;
 flatpak run &amp;lt;flatpak name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is recommended to enable [https://flathub.org Flathub] using it&#039;s instructions [https://flatpak.org/setup/Alpine/ here], as most glibc programs you might need will be packaged there.&lt;br /&gt;
&lt;br /&gt;
You can then install applications from it, for example:&lt;br /&gt;
&lt;br /&gt;
 flatpak install com.valvesoftware.Steam&lt;br /&gt;
&lt;br /&gt;
== Chroot ==&lt;br /&gt;
&lt;br /&gt;
=== Gentoo Linux ===&lt;br /&gt;
&lt;br /&gt;
Select a stage3 from [https://www.gentoo.org/downloads/ here] and portage latest from [https://www.gentoo.org/downloads/mirrors/ here] at gentoo/snapshots/portage-latest.tar.xz.&lt;br /&gt;
&lt;br /&gt;
First,&lt;br /&gt;
&lt;br /&gt;
 sudo apk add xz&lt;br /&gt;
&lt;br /&gt;
Enter the chroot:&lt;br /&gt;
 mkdir ~/chroot&lt;br /&gt;
 cd ~/chroot&lt;br /&gt;
 tar -xvf stage3-*.tar.xz&lt;br /&gt;
 tar -xvf portage-latest.tar.xz&lt;br /&gt;
 mv portage usr&lt;br /&gt;
 sudo mount --bind /dev dev&lt;br /&gt;
 sudo mount --bind /sys sys&lt;br /&gt;
 sudo mount -t proc proc proc&lt;br /&gt;
 cp /etc/resolv.conf etc&lt;br /&gt;
 sudo chroot . /bin/bash&lt;br /&gt;
&lt;br /&gt;
And voilà, you have your working Gentoo chroot!&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now take a look at [https://wiki.gentoo.org/wiki/Handbook:Main_Page Gentoo&#039;s Handbook] to find out how you can configure and install your system, or simply extract/copy the program you need to run in your chroot enviroment and execute it.&lt;br /&gt;
&lt;br /&gt;
Here is a wrapper script that is similar to &amp;lt;code&amp;gt;arch-chroot&amp;lt;/code&amp;gt; when you frequently reuse this chroot:&lt;br /&gt;
&lt;br /&gt;
Also, create an account with the same user name as host current user to the chroot or make changes to the userspec option to chroot line.&lt;br /&gt;
&lt;br /&gt;
{{Cat|gentoo-chroot.sh|&amp;lt;nowiki&amp;gt;!/bin/bash&lt;br /&gt;
CHROOT_PATH=&amp;quot;/home/$USER/chroot&amp;quot;&lt;br /&gt;
cd $CHROOT_PATH&lt;br /&gt;
mount | grep $CHROOT_PATH/dev || sudo mount --bind /dev dev&lt;br /&gt;
mount | grep $CHROOT_PATH/sys || sudo mount --bind /sys sys&lt;br /&gt;
mount | grep $CHROOT_PATH/proc || sudo mount -t proc proc proc&lt;br /&gt;
cp /etc/resolv.conf etc&lt;br /&gt;
sudo chroot --userspec=$USER:users . /bin/bash&lt;br /&gt;
echo &amp;quot;You must manually unmount $CHROOT_PATH/dev, $CHROOT_PATH/sys, $CHROOT_PATH/proc.&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Do at &amp;lt;code&amp;gt;chmod +x gentoo-chroot.sh&amp;lt;/code&amp;gt; to get it to work.&lt;br /&gt;
&lt;br /&gt;
=== Arch Linux ===&lt;br /&gt;
&lt;br /&gt;
Either use &#039;&#039;&#039;pacstrap&#039;&#039;&#039; (included with the arch-install-scripts package) or an Arch bootstrap image:&lt;br /&gt;
&lt;br /&gt;
  sudo apk add arch-install-scripts&lt;br /&gt;
  mkdir ~/chroot &amp;amp;&amp;amp; cd ~/chroot&lt;br /&gt;
  curl -O https://mirrors.edge.kernel.org/archlinux/iso/latest/archlinux-bootstrap-2021.04.01-x86_64.tar.gz&lt;br /&gt;
  sudo tar xzf archlinux-bootstrap-2021.04.01-x86_64.tar.gz &amp;amp;&amp;amp; rm archlinux-bootstrap-2021.04.01-x86_64.tar.gz&lt;br /&gt;
  sudo sed -i &#039;/evowise/s/^#//&#039; root.x86_64/etc/pacman.d/mirrorlist&lt;br /&gt;
  sudo sed -i &#039;/CheckSpace/s/^/#/&#039; root.x86_64/etc/pacman.conf&lt;br /&gt;
  sudo arch-chroot root.x86_64&lt;br /&gt;
  [chroot]# pacman-key --init&lt;br /&gt;
  [chroot]# pacman-key --populate archlinux&lt;br /&gt;
&lt;br /&gt;
Once that is done, update the system and install the desired package(s) (denoted by &#039;&#039;&amp;quot;foo&amp;quot;&#039;&#039; in this example):&lt;br /&gt;
  &lt;br /&gt;
  [chroot]# pacman -Syu &#039;&#039;foo&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
&lt;br /&gt;
Use the provided debootstrap package to create the Debian chroot. &amp;lt;code&amp;gt;--arch&amp;lt;/code&amp;gt; is optional, depending of your needs.&lt;br /&gt;
&lt;br /&gt;
On the &#039;&#039;&#039;linux-grsec&#039;&#039;&#039; kernel, you will need to relax chroot limitations:&lt;br /&gt;
&lt;br /&gt;
  sudo apk add debootstrap&lt;br /&gt;
  for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 0 | sudo tee $i; done&lt;br /&gt;
  mkdir ~/chroot&lt;br /&gt;
  sudo debootstrap --arch=i386 wheezy ~/chroot http://http.debian.net/debian/&lt;br /&gt;
  for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 1 | sudo tee $i; done&lt;br /&gt;
  sudo chroot ~/chroot /bin/bash&lt;br /&gt;
&lt;br /&gt;
You can now use &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; to install needed packages.&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>LAC-Tech</name></author>
	</entry>
</feed>