Difference between pages "Install/Chroot" and "Package:Layman"

< Install(Difference between pages)
(Created page with "=== Chroot into Funtoo === Before chrooting into your new system, there's a few things that need to be done first. You will need to mount /proc and /dev inside your new system...")
 
m
 
Line 1: Line 1:
=== Chroot into Funtoo ===
+
{{Ebuild
Before chrooting into your new system, there's a few things that need to be done first. You will need to mount /proc and /dev inside your new system. Use the following commands:
+
|Summary=Tool to manage Gentoo overlays
<console>
+
|CatPkg=app-portage/layman
# ##i##cd /mnt/funtoo
+
|Homepage=http://layman.sourceforge.net/
# ##i##mount -t proc none proc
+
}}
# ##i##mount --rbind /sys sys
+
Layman is an "overlay" external repository management tool.
# ##i##mount --rbind /dev dev
+
</console>
+
  
<noinclude>
+
=== Installation ===
{{Note|This is a template that is used as part of the Installation instructions, to describe the process of chrooting into the stage3. Templates are being used to allow multiple variant install guides that use most of the same re-usable parts.}}
+
<console>###i## emerge layman</console>
</noinclude>
+
[[make.conf]] must source laymans overlays for emerge to pull in packages from external sources. This line needs to be below everything else in make.conf.
 +
<console>###i## echo "source /var/lib/layman/make.conf" >> /etc/portage/make.conf</console>
  
You'll also want to copy over <code>resolv.conf</code> in order to have proper DNS name resolution from inside the chroot:
+
=== Using Layman ===
<console>
+
Fetch, and display a list of overlays:
# ##i##cp /etc/resolv.conf etc
+
<console>###i## layman -L</console>
</console>
+
  
Now you can chroot into your new system. Use <code>env</code> before <code>chroot</code> to ensure that no environment variables from the installation media are used by your new system:
+
Add an overlay to your system:
 +
<console>###i## layman -a <overlay name></console>
  
<console>
+
Delete an overlay from your system:
# ##i##env -i HOME=/root TERM=$TERM chroot . bash -l
+
<console>###i## layman -d <overlay name></console>
</console>
+
  
{{fancynote|Users of live CDs with 64-bit kernels: Some software may use <code>uname -r</code> to check whether the system is 32 or 64-bit. You may want append linux32 to the chroot command as a workaround, but it's generally not needed.}}
+
==== Masking Overlay Packages ====
{{fancyimportant|If you receive the error "<code>chroot: failed to run command `/bin/bash': Exec format error</code>", it is probably because you are running a 32-bit kernel and trying to execute 64-bit code. SystemRescueCd boots with a 32-bit kernel by default.}}
+
Overlays have the power to override distro packages. To avoid conflicts, mask everything in the overlay, and unmask the packages that are necessary to your system.
  
It's also a good idea to change the default command prompt while inside the chroot. This will avoid confusion if you have to change terminals. Use this command:
+
{{file|name=/etc/portage/package.mask|lang=|desc=mask all packages in an overlay|body=
<console>
+
*/*::overlay-name
# ##i##export PS1="(chroot) $PS1"
+
}}
</console>
+
  
Congratulations! You are now chrooted inside a Funtoo Linux system. Now it's time to get Funtoo Linux properly configured so that Funtoo Linux will boot successfully when your system is restarted.
+
{{file|name=/etc/portage/package.unmask|lang=|desc=unmask packages to be used|body=
 +
cat-egory/pack-age1
 +
cat-egory/pack-age2
 +
}}
 +
 
 +
==== Sync ====
 +
 
 +
Sync a specific overlays ebuilds:
 +
<console>###i## layman -s <overlay name></console>
 +
 
 +
Sync all overlays:
 +
<console>###i## layman -S</console>
 +
 
 +
Sync all overlays via eix:
 +
<console>###i## eix-sync</console>
 +
 
 +
=== Troubleshooting ===
 +
Problem:
 +
Warning: an installed db file was not found at: ['/var/lib/layman/cache***.xml']
 +
 
 +
Solution:
 +
<console>###i## layman -L</console>
 +
 
 +
{{EbuildFooter}}

Revision as of 12:00, February 3, 2015

app-portage/layman


Source Repository:Gentoo Portage Tree
Homepage

Summary: Tool to manage Gentoo overlays

Use Flags

bazaar
Support dev-vcs/bzr based overlays
cvs
Support dev-vcs/cvs based overlays
darcs
Support dev-vcs/darcs based overlays
g-sorcery
Support app-portage/g-sorcery based overlays
git
Support dev-vcs/git based overlays
gpg
Support app-crypt/gnupg signed overlays lists and manifests
mercurial
Support dev-vcs/mercurial based overlays
squashfs
Support mounting squashfs image overlays locally read-only
subversion
Support dev-vcs/subversion based overlays
sync-plugin-portage
Install the sys-apps/portage sync module

News

Drobbins

RSS/Atom Support

You can now follow this news feed at http://www.funtoo.org/news/atom.xml .
10 February 2015 by Drobbins
Drobbins

Creating a Friendly Funtoo Culture

This news item details some recent steps that have been taken to help ensure that Funtoo is a friendly and welcoming place for our users.
2 February 2015 by Drobbins
Mgorny

CPU FLAGS X86

CPU_FLAGS_X86 are being introduced to group together USE flags managing CPU instruction sets.
31 January 2015 by Mgorny
View More News...

Layman

Tip

This is a wiki page. To edit it, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Layman is an "overlay" external repository management tool.

Installation

# emerge layman

make.conf must source laymans overlays for emerge to pull in packages from external sources. This line needs to be below everything else in make.conf.

# echo "source /var/lib/layman/make.conf" >> /etc/portage/make.conf

Using Layman

Fetch, and display a list of overlays:

# layman -L

Add an overlay to your system:

# layman -a <overlay name>

Delete an overlay from your system:

# layman -d <overlay name>

Masking Overlay Packages

Overlays have the power to override distro packages. To avoid conflicts, mask everything in the overlay, and unmask the packages that are necessary to your system.

/etc/portage/package.mask - mask all packages in an overlay
*/*::overlay-name
/etc/portage/package.unmask - unmask packages to be used
cat-egory/pack-age1
cat-egory/pack-age2

Sync

Sync a specific overlays ebuilds:

# layman -s <overlay name>

Sync all overlays:

# layman -S

Sync all overlays via eix:

# eix-sync

Troubleshooting

Problem: Warning: an installed db file was not found at: ['/var/lib/layman/cache***.xml']

Solution:

# layman -L