FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


os:linux:pkg:index.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
os:linux:pkg:index.html [2018/02/04 23:23]
kurihara ↷ Links adapted because of a move operation
os:linux:pkg:index.html [2018/02/22 23:21]
kurihara
Line 1: Line 1:
 [[:index.html#OS Management|Top#OS Management]] [[:index.html#OS Management|Top#OS Management]]
-====== Package Management (pkg.py) ======+====== Linux Package Management with Fabric (pkg.py) ======
  
 $FHHOME/fabfile/pkg.py $FHHOME/fabfile/pkg.py
Line 7: Line 7:
 \\ \\
  
-===== Operation =====+===== Operation with Fabric=====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 $ fab -l |grep pkg $ fab -l |grep pkg
Line 15: Line 15:
 </sxh> </sxh>
  
-==== Ref. Remote Shell Commands ====+\\ 
 +==== Fabric one-line Task Examples ====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 $ H=test-server-01,test-server-02 $ H=test-server-01,test-server-02
-$ fab -H $H auth.pro  -- "rpm -q xxxx"+$ fab -H $H auth.pro  -- rpm -q xxxx
 $ fab -H $H auth.pro  -- "rpm -qa |grep xxx" $ fab -H $H auth.pro  -- "rpm -qa |grep xxx"
 $ fab -H $H auth.pro --  "rpm -qa --last | head -20" $ fab -H $H auth.pro --  "rpm -qa --last | head -20"
 +</sxh>
 +
 +<sxh bash toolbar:false gutter:false>
 +$ H=test-server-01,test-server-02
 +$ fab -H $H auth.pro  -- dpkg -l  # check installed list
 +$ fab -H $H auth.pro  -- apt search PACKAGE
 +$ fab -H $H auth.pro  -- apt show PACKAGE
 +
 +$ fab -H $H auth.pro  -- apt update
 +$ fab -H $H auth.pro  -- apt install -y PACKAGE
 </sxh> </sxh>
  


os/linux/pkg/index.html.txt · Last modified: 2019/02/11 00:39 by kurihara