By Mohamad Wael

Posted :

Pkgin Cheat sheet

Database update:

sudo pkgin update -y

Installed packages:

pkgin list #installed packages

Available packages:

pkgin avail #remote packages

Search:

pkgin search 'ng.*x'

Show remote package contents:

pkgin pkg-content nginx

Show remote package long description:

pkgin pkg-descr nginx

Remote package build definitions:

pkgin pkg-build-defs nginx

Install/Upgrade packages:

sudo pkgin install nginx mysql -y #y means yes


sudo pkgin install 'tree>1.7<1.9' -y

Upgrade all packages:

sudo pkgin upgrade

Remove package and dependencies of it:

sudo pkgin remove nginx

Remove orphan dependencies:

sudo pkgin autoremove

Delete downloaded Cache:

sudo pkgin clean

Show package dependencies:

pkgin requires nginx #package requirements from others


pkgin show-deps nginx #package direct dependencies


pkgin show-full-deps nginx #package full dependencies


pkgin provides nginx #package provides others


pkgin show-rev-deps nginx #package reverse dependencies

Export / Import packages:

pkgin export > packages


sudo pkgin import packages

Category:

pkgin show-category www


pkgin show-pkg-category nginx

Pin a package:

$ sudo nano /usr/pkg/etc/pkgin/preferred.conf  #path to preferred.conf
# Add, and save
tree<1.9