Difference between pages "Talk:SAN Box used via iSCSI" and "Emerge"

(Difference between pages)
 
 
Line 1: Line 1:
* Explicit device-thresholds seems to be useless, Solaris powers down everything it can. Should try an explicit device-thresholds with system-threshold always-on.
+
== Getting started with emerge ==
* Even with tpg defined, a target still listens on all NICs, but the port seems to taken into account....... Bug?
+
Emerge is the front-end for funtoo's portage package manager. With emerge it is easy to install, update or remove packages.
* Why format does protest with:
+
<pre>
+
WARNING - This disk may be in use by an application that has
+
          modified the fdisk table. Ensure that this disk is
+
          not currently in use before proceeding to use fdisk
+
</pre>
+
  
Thus requiring to manually create a partition with format -> fdisk before being partitioned? ZFS/COMSTAR bug? It does not seems to be a thin provisioning issue at first glance.
+
=== Update package database ===
* What about 4k sector alignment required by new hard-drives? iSCSI is transparent for that?
+
'''Sync local package database. This will update your local Portage tree with the latest Funtoo ebuilds.'''
 +
<console>
 +
###i## emerge --sync
 +
</console>
  
 +
=== Search packages ===
 +
'''Search packages by name.'''
 +
<console>
 +
###i## emerge -s firefox
 +
###i## emerge --search firefox
 +
</console>
  
----
+
'''Search packages by description.'''
 +
<console>
 +
###i## emerge -S web browser
 +
###i## emerge --searchdesc web browser
 +
</console>
  
 +
=== Install packages ===
 +
'''Install package.'''
 +
<console>
 +
###i## emerge firefox
 +
</console>
  
* device-thresholds: Solaris respects power savings requirements so yes if it can it will, my goald here was an attempt to control the delays. Some green drives ignore them.
+
'''Install multiple packages.'''
* tpg: same here, the target listen for connections on all addresses... It sounds like a bug! Functional descriptions are not the same than the seen behaviours.
+
<console>
* I did't use fdisk I give the whole disk to eat to ZFS and it deals nicely with it (a GPT table is created automatically).
+
###i## emerge firefox thunderbird
* 4k sectors:  Solaris seems to handle 4k sectors (at the condition the drive does not lie on the physical sector size). I would say that iSCSI should pay attention ("direct" access), impacts on an access through a zvol on a pool is still a very good question.
+
</console>
  
--404
+
'''Install package. Ask for confirmation before performing any changes. Show verbose output.'''
 +
<console>
 +
###i## emerge -av firefox
 +
###i## emerge --ask firefox
 +
</console>
 +
 
 +
=== Remove packages ===
 +
'''Remove package.'''
 +
<console>
 +
###i## emerge -C firefox
 +
###i## emerge --unmerge firefox
 +
</console>
 +
 
 +
'''Remove package. Ask for confirmation before performing any changes.'''
 +
<console>
 +
###i## emerge -aC firefox
 +
</console>
 +
 
 +
'''Remove orphaned packages. Ask for confirmation before performing any changes.'''
 +
<console>
 +
###i## emerge -a --depclean
 +
</console>
 +
 
 +
=== Update packages ===
 +
'''Update all packages.'''
 +
<console>
 +
###i## emerge -uDN @world
 +
</console>
 +
 
 +
'''Update all packages. Ask for confirmation before performing any changes. Show verbose output.'''
 +
<console>
 +
###i## emerge -uavDN @world
 +
</console>
 +
 
 +
== Emerge options ==
 +
 
 +
; --sync
 +
: Updates the portage tree that is located in /usr/portage by default.
 +
 
 +
; --search -s
 +
: Searches  for  matches  of  the  supplied  string in the portage tree.
 +
 
 +
; --searchdesc -S
 +
: Matches the search string against the description field as well as the package name.
 +
 
 +
; --ask -a
 +
: Ask for confirmation before performing any changes.
 +
 
 +
; --pretend -p
 +
: Instead of actually performing the merge, simply display what *would* have been installed if --pretend weren't used.
 +
 
 +
; --unmerge -C
 +
: Removes all matching packages.
 +
 
 +
; --update -u
 +
: Updates  packages to the best version available, which may not always be the  highest version number due to masking for testing and development.
 +
 
 +
; --deep [DEPTH] -D
 +
: force  emerge  to  consider  the  entire  dependency tree of packages, instead of checking only the immediate dependencies of the packages.
 +
 
 +
; --newuse -N
 +
: Tells emerge to include installed packages where USE flags have changed since compilation.
 +
 
 +
; --depclean -c
 +
: Remove orphaned packages. Cleans the system by removing packages that are not associated with explicitly merged packages.
 +
 
 +
; --autounmask-write
 +
: Automatically write package.use settings as necessary to satisfy dependencies.
 +
 
 +
; --resume -r
 +
: Resumes  the  most recent merge list that has been aborted due to an error.
 +
 
 +
; --jobs[=JOBS] -j [JOBS]
 +
: Specifies the number of packages to build simultaneously.
 +
 
 +
; --load-average [LOAD]
 +
: Specifies  that  no  new  builds should be started if there are other builds running and the load average is at least LOAD (a floating-point number).
 +
 
 +
== Configuration ==
 +
=== make.conf ===
 +
Emerge can be configured with <code>/etc/portage/make.conf</code>
 +
{{File
 +
|/etc/portage/make.conf|<pre>
 +
CFLAGS="-march=native -O2 -pipe"
 +
CXXFLAGS="-march=native -O2 -pipe"
 +
 
 +
MAKEOPTS="-j2"
 +
EMERGE_DEFAULT_OPTS="--jobs 2 --load-average 2"
 +
INPUT_DEVICES="evdev synaptics"
 +
VIDEO_CARDS="intel i965"
 +
LINGUAS="en en_US en_GB"
 +
ACCEPT_LICENSE="*"
 +
 
 +
USE="mmx mmxext sse sse2 sse3 ssse3 threads alsa X gtk xcb dri opengl vaapi udev \
 +
    svg x264 xvid gstreamer webm vpx icu bash-completion vim-pager \
 +
    -gnome -xscreensaver -cups -fortran -deprecated -iptables -ipv6 -geoloc \
 +
    -mta -sendmail -kmod -tiff -live -quicktime -real -gpm -themes"
 +
</pre>}}
 +
 
 +
=== package.use ===
 +
Per-package use flags can be configured with <code>/etc/portage/package.use</code>
 +
<console>
 +
###i## nano /etc/portage/package.use
 +
x11-wm/dwm savedconfig
 +
media-sound/ncmpcpp visualizer clock taglib
 +
</console>
 +
 
 +
=== package.accept_keywords ===
 +
If you want to install package that has not been tested on your architecture you need to edit <code>/etc/portage/package.accept_keywords</code>
 +
<console>
 +
###i## nano /etc/portage/package.accept_keywords
 +
=app-misc/screenfetch-9999 **
 +
</console>
 +
 
 +
== Further info ==
 +
For further info see emerge man page.
 +
<console>$##i## man emerge</console>
 +
 
 +
[[Category:Portage]]
 +
 
 +
[[Category:HOWTO]]
 +
[[Category:Tutorial]]
 +
[[Category:System]]

Revision as of 17:13, 28 January 2014

Getting started with emerge

Emerge is the front-end for funtoo's portage package manager. With emerge it is easy to install, update or remove packages.

Update package database

Sync local package database. This will update your local Portage tree with the latest Funtoo ebuilds.

# emerge --sync

Search packages

Search packages by name.

# emerge -s firefox
# emerge --search firefox

Search packages by description.

# emerge -S web browser
# emerge --searchdesc web browser

Install packages

Install package.

# emerge firefox

Install multiple packages.

# emerge firefox thunderbird

Install package. Ask for confirmation before performing any changes. Show verbose output.

# emerge -av firefox
# emerge --ask firefox

Remove packages

Remove package.

# emerge -C firefox
# emerge --unmerge firefox

Remove package. Ask for confirmation before performing any changes.

# emerge -aC firefox

Remove orphaned packages. Ask for confirmation before performing any changes.

# emerge -a --depclean

Update packages

Update all packages.

# emerge -uDN @world

Update all packages. Ask for confirmation before performing any changes. Show verbose output.

# emerge -uavDN @world

Emerge options

--sync
Updates the portage tree that is located in /usr/portage by default.
--search -s
Searches for matches of the supplied string in the portage tree.
--searchdesc -S
Matches the search string against the description field as well as the package name.
--ask -a
Ask for confirmation before performing any changes.
--pretend -p
Instead of actually performing the merge, simply display what *would* have been installed if --pretend weren't used.
--unmerge -C
Removes all matching packages.
--update -u
Updates packages to the best version available, which may not always be the highest version number due to masking for testing and development.
--deep [DEPTH] -D
force emerge to consider the entire dependency tree of packages, instead of checking only the immediate dependencies of the packages.
--newuse -N
Tells emerge to include installed packages where USE flags have changed since compilation.
--depclean -c
Remove orphaned packages. Cleans the system by removing packages that are not associated with explicitly merged packages.
--autounmask-write
Automatically write package.use settings as necessary to satisfy dependencies.
--resume -r
Resumes the most recent merge list that has been aborted due to an error.
--jobs[=JOBS] -j [JOBS]
Specifies the number of packages to build simultaneously.
--load-average [LOAD]
Specifies that no new builds should be started if there are other builds running and the load average is at least LOAD (a floating-point number).

Configuration

make.conf

Emerge can be configured with /etc/portage/make.conf

{{{name}}}
{{{body}}}

package.use

Per-package use flags can be configured with /etc/portage/package.use

# nano /etc/portage/package.use
x11-wm/dwm savedconfig
media-sound/ncmpcpp visualizer clock taglib

package.accept_keywords

If you want to install package that has not been tested on your architecture you need to edit /etc/portage/package.accept_keywords

# nano /etc/portage/package.accept_keywords
=app-misc/screenfetch-9999 **

Further info

For further info see emerge man page.

$ man emerge