Difference between pages "Package:Layman" and "User:Danielv"

(Difference between pages)
m
 
(change stuff around - danielv)
 
Line 1: Line 1:
{{Ebuild
+
{{Person
|Summary=Tool to manage Gentoo overlays
+
|Bio=I enjoy exploring GNU/Linux and learning more about computing, in general.
|CatPkg=app-portage/layman
+
|Blogs=
|Homepage=http://layman.sourceforge.net/
+
 
}}
 
}}
Layman is an "overlay" external repository management tool.
 
  
=== Installation ===
+
--[[User:Danielv|Danielv]] ([[User talk:Danielv|talk]]) 12:53, July 8, 2015 (UTC)<br />
<console>###i## emerge layman</console>
+
http://forums.funtoo.org/blog/9-danielvs-blog/
[[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>
+
  
=== Using Layman ===
+
--[[User:Danielv|Danielv]] ([[User talk:Danielv|talk]]) 00:06, July 3, 2015 (UTC)<br />
Fetch, and display a list of overlays:
+
Note to self:  only edit ebuild pages.<br />
<console>###i## layman -L</console>
+
  
Add an overlay to your system:
+
--[[User:Danielv|Danielv]] ([[User talk:Danielv|talk]]) 20:07, June 29, 2015 (UTC)<br/>
<console>###i## layman -a <overlay name></console>
+
re: '''kernels''' <br/>
 +
<console>
 +
###i## emerge -av app-portage/eix
 +
</console>
 +
<br />
 +
To see available kernel packages, I do this command for a brief listing<br/>
 +
<console>
 +
###i## eix -# sys-kernel/
 +
sys-kernel/alt-sources
 +
sys-kernel/aufs-sources
 +
sys-kernel/better-initramfs-bin
 +
sys-kernel/bliss-initramfs
 +
sys-kernel/bliss-kernel
 +
sys-kernel/centos7plus-sources
 +
sys-kernel/ck-sources
 +
sys-kernel/cryptodev
 +
sys-kernel/debian-sources
 +
sys-kernel/dkms
 +
sys-kernel/dracut
 +
sys-kernel/genkernel
 +
sys-kernel/genkernel-next
 +
sys-kernel/gentoo-sources
 +
sys-kernel/git-sources
 +
sys-kernel/hardened-sources
 +
sys-kernel/kccmp
 +
sys-kernel/kergen
 +
sys-kernel/linux-docs
 +
sys-kernel/linux-firmware
 +
sys-kernel/linux-headers
 +
sys-kernel/mips-sources
 +
sys-kernel/openvz-rhel6-stable
 +
sys-kernel/openvz-sources
 +
sys-kernel/pf-sources
 +
sys-kernel/raspberrypi-image
 +
sys-kernel/raspberrypi-sources
 +
sys-kernel/rhel7-sources
 +
sys-kernel/rsbac-sources
 +
sys-kernel/rt-sources
 +
sys-kernel/spl
 +
sys-kernel/std-sources
 +
sys-kernel/tuxonice-sources
 +
sys-kernel/vanilla-sources
 +
sys-kernel/vserver-sources
 +
sys-kernel/xbox-sources
 +
sys-kernel/zen-sources
 +
</console>
  
Delete an overlay from your system:
+
or for more detail<br/>
<console>###i## layman -d <overlay name></console>
+
<console>
 +
###i## eix -c sys-kernel/
 +
</console>
 +
<br />
 +
This command puts out lots of content to the screen, and it has color...<br />
 +
<console>
 +
###i## eix -A sys-kernel/
 +
</console>
 +
<br />
  
==== Masking Overlay Packages ====
+
Let's say you want to look at sys-kernel/genkernel<br/>
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.
+
<console>
 +
###i## eix sys-kernel/genkernel/
 +
</console>
 +
<br />
  
{{file|name=/etc/portage/package.mask|lang=|desc=mask all packages in an overlay|body=
+
--[[User:Danielv|Danielv]] ([[User talk:Danielv|talk]]) 19:03, June 29, 2015 (UTC)
*/*::overlay-name
+
<console>
}}
+
###i## emerge -ajv @module-rebuild
 
+
{{file|name=/etc/portage/package.unmask|lang=|desc=unmask packages to be used|body=
+
cat-egory/pack-age1
+
cat-egory/pack-age2
+
}}
+
  
==== Sync ====
+
These are the packages that would be merged, in order:
  
Sync a specific overlays ebuilds:
+
Calculating dependencies  ... done!
<console>###i## layman -s <overlay name></console>
+
[ebuild  R    ] sys-kernel/debian-sources-3.19.3:3.19.3  USE="binary -rt" 0 kB
 +
[ebuild  R    ] x11-drivers/nvidia-drivers-352.21  USE="X gtk2 gtk3 (multilib) tools -acpi -pax_kernel -uvm" 0 kB
  
Sync all overlays:
+
Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
<console>###i## layman -S</console>
+
</console>
 +
---------------------
 +
<console>
 +
###i## grep -r nvidia /etc/portage
 +
/etc/portage/make.conf:VIDEO_CARDS="nvidia"
 +
</console>
 +
---------------------
 +
<console>
 +
###i## genkernel --menuconfig all
 +
</console>
 +
<console>
 +
###i## make modules_install
 +
</console>
 +
<console>
 +
###i## make install
 +
sh ./arch/x86/boot/install.sh 3.18.16-gentoo arch/x86/boot/bzImage \<br />
 +
  System.map "/boot"
 +
</console>
 +
script runs automatically<br />
 +
<console>
 +
###i## boot-update
 +
</console>
 +
<console>
 +
###i## emerge x11-drivers/nvidia-drivers
 +
352.21
 +
</console>
  
Sync all overlays via eix:
+
add it to /etc/conf.d/modules
<console>###i## eix-sync</console>
+
---------------------
 +
<console>
 +
###i## eix-installed all |grep nvidia
 +
x11-drivers/nvidia-driver-352.21
 +
</console>
 +
---------------------
 +
<console>
 +
###i## eix-installed all |grep kernel
 +
sys-kernel/debian-sources-3.19.3
 +
sys-kernel/genkernel-3.4.40.7-r6
 +
sys-kernel/gentoo-sources-3.18.16
 +
sys-kernel/gentoo-sources-4.1.0
 +
sys-kernel/linux-headers-4.0
 +
</console>
 +
---------------------
 +
<console>
 +
###i## eselect kernel list
 +
[1] linux-3.18.16-gentoo *
 +
[2] linux-debian-sources-3.19.3
 +
</console>
 +
---------
 +
<console>
 +
###i## cfg-update -u
 +
###i## emerge -auDN @world
 +
###i## emerge --depclean
 +
</console>
  
=== Troubleshooting ===
 
Problem:
 
Warning: an installed db file was not found at: ['/var/lib/layman/cache***.xml']
 
  
Solution:
 
<console>###i## layman -L</console>
 
  
{{EbuildFooter}}
+
[[Ebuilds_by_CatPkg|http://www.funtoo.org/Ebuilds_by_CatPkg]]

Latest revision as of 15:57, July 9, 2015



Contact

freenode: danielv


--Danielv (talk) 12:53, July 8, 2015 (UTC)
http://forums.funtoo.org/blog/9-danielvs-blog/

--Danielv (talk) 00:06, July 3, 2015 (UTC)
Note to self: only edit ebuild pages.

--Danielv (talk) 20:07, June 29, 2015 (UTC)
re: kernels

# emerge -av app-portage/eix


To see available kernel packages, I do this command for a brief listing

# eix -# sys-kernel/
sys-kernel/alt-sources
sys-kernel/aufs-sources
sys-kernel/better-initramfs-bin
sys-kernel/bliss-initramfs
sys-kernel/bliss-kernel
sys-kernel/centos7plus-sources
sys-kernel/ck-sources
sys-kernel/cryptodev
sys-kernel/debian-sources
sys-kernel/dkms
sys-kernel/dracut
sys-kernel/genkernel
sys-kernel/genkernel-next
sys-kernel/gentoo-sources
sys-kernel/git-sources
sys-kernel/hardened-sources
sys-kernel/kccmp
sys-kernel/kergen
sys-kernel/linux-docs
sys-kernel/linux-firmware
sys-kernel/linux-headers
sys-kernel/mips-sources
sys-kernel/openvz-rhel6-stable
sys-kernel/openvz-sources
sys-kernel/pf-sources
sys-kernel/raspberrypi-image
sys-kernel/raspberrypi-sources
sys-kernel/rhel7-sources
sys-kernel/rsbac-sources
sys-kernel/rt-sources
sys-kernel/spl
sys-kernel/std-sources
sys-kernel/tuxonice-sources
sys-kernel/vanilla-sources
sys-kernel/vserver-sources
sys-kernel/xbox-sources
sys-kernel/zen-sources

or for more detail

# eix -c sys-kernel/


This command puts out lots of content to the screen, and it has color...

# eix -A sys-kernel/


Let's say you want to look at sys-kernel/genkernel

# eix sys-kernel/genkernel/


--Danielv (talk) 19:03, June 29, 2015 (UTC)

# emerge -ajv @module-rebuild

These are the packages that would be merged, in order:

Calculating dependencies  ... done!
[ebuild   R    ] sys-kernel/debian-sources-3.19.3:3.19.3  USE="binary -rt" 0 kB
[ebuild   R    ] x11-drivers/nvidia-drivers-352.21  USE="X gtk2 gtk3 (multilib) tools -acpi -pax_kernel -uvm" 0 kB

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB

# grep -r nvidia /etc/portage
/etc/portage/make.conf:VIDEO_CARDS="nvidia"

# genkernel --menuconfig all
# make modules_install
# make install
 sh ./arch/x86/boot/install.sh 3.18.16-gentoo arch/x86/boot/bzImage \<br />
   System.map "/boot"

script runs automatically

# boot-update
# emerge x11-drivers/nvidia-drivers
352.21

add it to /etc/conf.d/modules


# eix-installed all |grep nvidia
x11-drivers/nvidia-driver-352.21

# eix-installed all |grep kernel
sys-kernel/debian-sources-3.19.3
sys-kernel/genkernel-3.4.40.7-r6
sys-kernel/gentoo-sources-3.18.16
sys-kernel/gentoo-sources-4.1.0
sys-kernel/linux-headers-4.0

# eselect kernel list
[1] linux-3.18.16-gentoo *
[2] linux-debian-sources-3.19.3

# cfg-update -u
# emerge -auDN @world
# emerge --depclean


http://www.funtoo.org/Ebuilds_by_CatPkg