Perintah Terminal
APT(debian, ubuntu)
| Command | Description |
|---|---|
| # apt-cache search [package] | returns list of packages which corresponds string "searched-packages" |
| # apt-cdrom install [package] | install / upgrade a deb package from cdrom |
| # apt-get install [package] | install / upgrade a deb package |
| # apt-get update | update the package list |
| # apt-get upgrade | upgrade all of the installed packages |
| # apt-get remove [package] | remove a deb package from system |
| # apt-get check | verify correct resolution of dependencies |
| # apt-get clean | clean up cache from packages downloaded |
DEB(debian,ubuntu)
| Command | Description |
|---|---|
| # dpkg -i [package.deb] | install / upgrade a deb package |
| # dpkg -r [package] | remove a deb package from the system |
| # dpkg -l | show all deb packages installed on the system |
| grep httpd | show all deb packages with the name "httpd" |
| # dpkg -s [package] | obtain information on a specific package installed on system |
| # dpkg -L [package] | show list of files provided by a package installed on system |
| # dpkg --contents [package.deb] | show list of files provided by a package not yet installed |
| # dpkg -S /bin/ping | verify which package belongs to a given file |
YUM(redhat,fedora)
| Command | Description |
|---|---|
| # dpkg -i [package.deb] | install / upgrade a deb package |
| # dpkg -r [package] | remove a deb package from the system |
| # dpkg -l | show all deb packages installed on the system |
| grep httpd | show all deb packages with the name "httpd" |
| # dpkg -s [package] | obtain information on a specific package installed on system |
| # dpkg -L [package] | show list of files provided by a package installed on system |
| # dpkg --contents [package.deb] | show list of files provided by a package not yet installed |
| # dpkg -S /bin/ping | verify which package belongs to a given file |
RPM(redhat,fedora,opensuse)
| Command | Description |
|---|---|
| # rpm -ivh [package.rpm] | install a rpm package |
| # rpm -ivh --nodeeps [package.rpm] | install a rpm package ignoring dependencies requests |
| # rpm -U [package.rpm] | upgrade a rpm package without changing configuration files |
| # rpm -F [package.rpm] | upgrade a rpm package only if it is already installed |
| # rpm -e [package] | remove a rpm package |
| # rpm -qa | show all rpm packages installed on the system |
| grep httpd | show all rpm packages with the name "httpd" |
| # rpm -qi [package] | obtain information on a specific package installed |
| # rpm -qg "System Environment/Daemons" | show rpm packages of a group software |
| # rpm -ql [package] | show list of files provided by a rpm package installed |
| # rpm -qc [package] | show list of configuration files provided by a rpm package installed |
| # rpm -q [package] --whatrequires | show list of dependencies required for a rpm packet |
| # rpm -q [package] --whatprovides | show capability provided by a rpm package |
| # rpm -q [package] --scripts | show scripts started during installation / removal |
| # rpm -q [package] --changelog | show history of revisions of a rpm package |
| # rpm -qf /etc/httpd/conf/httpd.conf | verify which rpm package belongs to a given file |
| # rpm -qp [package.rpm] -l | show list of files provided by a rpm package not yet installed |
| # rpm --import /media/cdrom/RPM-GPG-KEY | import public-key digital signature |
| # rpm --checksig [package.rpm] | verify the integrity of a rpm package |
| # rpm -qa gpg-pubkey | verify integrity of all rpm packages installed |
| # rpm -V [package] | check file size, permissions, type, owner, group, MD5 checksum and last modification |
| # rpm -Va | check all rpm packages installed on the system - use with caution |
| # rpm -Vp [package.rpm] | verify a rpm package not yet installed |
| # rpm -ivh /usr/src/redhat/RPMS/`arch`/[package.rpm] | install a package built from a rpm source |
| cpio --extract --make-directories *bin* | extract executable file from a rpm package |
| # rpmbuild --rebuild [package.src.rpm] | build a rpm package from a rpm source |
TARBALL(slackware dan semua linux)
| Command | Description |
|---|---|
| # bunzip2 file1.bz2 | decompress a file called 'file1.bz2' |
| # bzip2 file1 | compress a file called 'file1' |
| # gunzip file1.gz | decompress a file called 'file1.gz' |
| # gzip file1 | compress a file called 'file1' |
| # gzip -9 file1 | compress with maximum compression |
| # rar a file1.rar test_file | create an archive rar called 'file1.rar' |
| # rar a file1.rar file1 file2 dir1 | compress 'file1', 'file2' and 'dir1' simultaneously |
| # rar x file1.rar | decompress rar archive |
| # tar -cvf archive.tar file1 | create a uncompressed tarball |
| # tar -cvf archive.tar file1 file2 dir1 | create an archive containing 'file1', 'file2' and 'dir1' |
| # tar -tf archive.tar | show contents of an archive |
| # tar -xvf archive.tar | extract a tarball |
| # tar -xvf archive.tar -C /tmp | extract a tarball into / tmp |
| # tar -cvfj archive.tar.bz2 dir1 | create a tarball compressed into bzip2 |
| # tar -xvfj archive.tar.bz2 | decompress a compressed tar archive in bzip2 |
| # tar -cvfz archive.tar.gz dir1 | create a tarball compressed into gzip |
| # tar -xvfz archive.tar.gz | decompress a compressed tar archive in gzip |
| # unrar x file1.rar | decompress rar archive |
| # unzip file1.zip | decompress a zip archive |
| # zip file1.zip file1 | create an archive compressed in zip |
| # zip -r file1.zip file1 file2 dir1 | compress in zip several files and directories simultaneously |
PACMAN(arch,frugalware)
| Command | Description |
|---|---|
| # pacman -S name | Install package 'name' with dependencies |
| # pacman -R name | Delete package 'name' and all files of it |
0 komentar