Tuesday, August 5, 2008

working with package on Open-Source

Freebsd:
Using pkg_tools:
pkg_add -r # fetch from respository and install it
pkg_info # get installed packages's information
pkg_info -L # show everything that are created by pkg's installation
pkg_delete #remove pkg
Using port:
cd /usr/ports
make search name= #specify the path of pkg's port
......
path=/path/to/port/ #path to pkg's port
......
cd /usr/ports/path/to/port/ #change dir to pkg's port
make install clean

ex: update later

Linux:
Using rpm:
rpm -qa #show installed packages
rpm -ivh
rpm -ql # Show everything that are created by pkg's installation
yum update # Update pkg from internet

Using yum:
yum install #install pkg
yum remove #remove pkg

Using zypper:

    zypper search #install pkg
    zypper install  #remove pkg


Using apt-get:
update later







No comments: