Perintah Terminal

APT(debian, ubuntu)
CommandDescription
# 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 updateupdate the package list
# apt-get upgradeupgrade all of the installed packages
# apt-get remove [package]remove a deb package from system
# apt-get checkverify correct resolution of dependencies
# apt-get cleanclean up cache from packages downloaded

DEB(debian,ubuntu)

CommandDescription
# dpkg -i [package.deb]install / upgrade a deb package
# dpkg -r [package]remove a deb package from the system
# dpkg -lshow all deb packages installed on the system
grep httpdshow 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/pingverify which package belongs to a given file

YUM(redhat,fedora)

CommandDescription
# dpkg -i [package.deb]install / upgrade a deb package
# dpkg -r [package]remove a deb package from the system
# dpkg -lshow all deb packages installed on the system
grep httpdshow 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/pingverify which package belongs to a given file

RPM(redhat,fedora,opensuse)

CommandDescription
# 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 -qashow all rpm packages installed on the system
grep httpdshow 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] --whatrequiresshow list of dependencies required for a rpm packet
# rpm -q [package] --whatprovidesshow capability provided by a rpm package
# rpm -q [package] --scriptsshow scripts started during installation / removal
# rpm -q [package] --changelogshow history of revisions of a rpm package
# rpm -qf /etc/httpd/conf/httpd.confverify which rpm package belongs to a given file
# rpm -qp [package.rpm] -lshow list of files provided by a rpm package not yet installed
# rpm --import /media/cdrom/RPM-GPG-KEYimport public-key digital signature
# rpm --checksig [package.rpm]verify the integrity of a rpm package
# rpm -qa gpg-pubkeyverify integrity of all rpm packages installed
# rpm -V [package]check file size, permissions, type, owner, group, MD5 checksum and last modification
# rpm -Vacheck 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)

CommandDescription
# bunzip2 file1.bz2decompress a file called 'file1.bz2'
# bzip2 file1compress a file called 'file1'
# gunzip file1.gzdecompress a file called 'file1.gz'
# gzip file1compress a file called 'file1'
# gzip -9 file1compress with maximum compression
# rar a file1.rar test_filecreate an archive rar called 'file1.rar'
# rar a file1.rar file1 file2 dir1compress 'file1', 'file2' and 'dir1' simultaneously
# rar x file1.rardecompress rar archive
# tar -cvf archive.tar file1create a uncompressed tarball
# tar -cvf archive.tar file1 file2 dir1create an archive containing 'file1', 'file2' and 'dir1'
# tar -tf archive.tarshow contents of an archive
# tar -xvf archive.tarextract a tarball
# tar -xvf archive.tar -C /tmpextract a tarball into / tmp
# tar -cvfj archive.tar.bz2 dir1create a tarball compressed into bzip2
# tar -xvfj archive.tar.bz2decompress a compressed tar archive in bzip2
# tar -cvfz archive.tar.gz dir1create a tarball compressed into gzip
# tar -xvfz archive.tar.gzdecompress a compressed tar archive in gzip
# unrar x file1.rardecompress rar archive
# unzip file1.zipdecompress a zip archive
# zip file1.zip file1create an archive compressed in zip
# zip -r file1.zip file1 file2 dir1compress in zip several files and directories simultaneously

PACMAN(arch,frugalware)

CommandDescription
# pacman -S nameInstall package 'name' with dependencies
# pacman -R nameDelete package 'name' and all files of it

0 komentar