APT Örnekleri

Published 03-15-2018 00:00:00

apt komutu ile ilgili birtakım örnekler;

  • Paket yüklemek için

     sudo apt install <paket-adi>
    
  • Paketi yüklerken “E/e - H/h” şeklinde sormasın

     sudo apt install <paket-adi> -y
    
  • Paket versiyonunu öğrenmek(Depoları ile birlikte)

     sudo apt policy <paket-adi>
    

    Örneğin;

     sudo apt policy ejabberd
    
     ejabberd:
     Kurulu: 16.09-4
     Aday:   16.09-4
     Sürüm çizelgesi:
     *** 16.09-4 500
     	500 http://depo.pardus.org.tr/pardus onyedi/main amd64 Packages
     	100 /var/lib/dpkg/status
     16.06-0 500
     500 http://repo.liderahenk.org stable/main amd64 Packages
    
  • Paket içeriği (Bağımlılıkları ile birlikte)

     sudo apt show <paket-adi>
    

    Örneğin;

     sudo apt show apt
    
     Package: apt
     Version: 1.4.8
     Priority: important
     Section: admin
     Maintainer: APT Development Team <deity@lists.debian.org>
     Installed-Size: 3.624 kB
     Depends: adduser, gpgv | gpgv2 | gpgv1, debian-archive-keyring, init-system-helpers (>= 1.18~), libapt-pkg5.0 (>= 1.3~rc2), libc6 (>= 2.15), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2)
     Recommends: gnupg | gnupg2 | gnupg1
     Suggests: apt-doc, aptitude | synaptic | wajig, dpkg-dev (>= 1.17.2), powermgmt-base, python-apt
     Breaks: apt-utils (<< 1.3~exp2~)
     Replaces: apt-utils (<< 1.3~exp2~)
     Tag: admin::package-management, devel::lang:ruby, hardware::storage, hardware::storage:cd, implemented-in::c++, implemented-in::perl, implemented-in::ruby, interface::commandline, network::client, protocol::ftp, protocol::http, protocol::ipv6, role::program, scope::application, scope::utility, sound::player, suite::debian, use::downloading, use::organizing, use::searching, works-with::audio, works-with::software:package, works-with::text
     Download-Size: 1.232 kB
     APT-Manual-Installed: yes
     APT-Sources: http://depo.pardus.org.tr/pardus onyedi/main amd64 Packages
     Description: commandline package manager
    
  • Paket içeriği (Birden fazla depoda varsa)

     sudo apt show <paket-adi> -a
    

    Örneğin;

     sudo apt show mariadb-server -a
    
     Package: mariadb-server
     Version: 10.2.13+maria~stretch
     Priority: optional
     Section: database
     Source: mariadb-10.2
     Maintainer: MariaDB Developers <maria-developers@lists.launchpad.net>
     Installed-Size: 10,2 kB
     Depends: mariadb-server-10.2 (>= 10.2.13+maria~stretch)
     Homepage: http://mariadb.org/
     Download-Size: 2.956 B
     APT-Sources: http://repo.liderahenk.org stable/main amd64 Packages
     Description: MariaDB database server (metapackage depending on the latest version)
      This is an empty package that depends on the current "best" version of
      mariadb-server (currently mariadb-server-10.2), as determined by the MariaDB
      maintainers. Install this package if in doubt about which MariaDB
      version you need. That will install the version recommended by the
      package maintainers.
      .
      MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
      server. SQL (Structured Query Language) is the most popular database query
      language in the world. The main goals of MariaDB are speed, robustness and
      ease of use.
    
     Package: mariadb-server
     Version: 10.1.26-0+deb9u1
     Priority: optional
     Section: database
     Source: mariadb-10.1
     Maintainer: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>
     Installed-Size: 63,5 kB
     Depends: mariadb-server-10.1 (>= 10.1.26-0+deb9u1)
     Homepage: https://mariadb.org/
     Tag: devel::lang:c++, devel::lang:sql, implemented-in::c++, interface::commandline, interface::daemon, network::server, protocol::db:mysql, role::metapackage, role::program, works-with::db
     Download-Size: 26,2 kB
     APT-Sources: http://depo.pardus.org.tr/pardus onyedi/main amd64 Packages
     Description: MariaDB database server (metapackage depending on the latest version)
    
     Package: mariadb-server
     Version: 10.1.23-9+deb9u1
     Priority: optional
     Section: database
     Source: mariadb-10.1
     Maintainer: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>
     Installed-Size: 63,5 kB
     Depends: mariadb-server-10.1 (>= 10.1.23-9+deb9u1)
     Homepage: https://mariadb.org/
     Tag: devel::lang:c++, devel::lang:sql, implemented-in::c++, interface::commandline, interface::daemon, network::server, protocol::db:mysql, role::metapackage, role::program, works-with::db
     Download-Size: 25,7 kB
     APT-Sources: http://depo.pardus.org.tr/pardus onyedi/main amd64 Packages
     Description: MariaDB database server (metapackage depending on the latest version)
    
  • Paketi güncellenemez hale getirmek

     apt-mark hold <paket-adi>
    

    Örneğin;

     apt-mark hold ejabberd
    
     ejabberd paketi tutuluyor.
    
  • Paketi güncellenebilir hale getirmek

     apt-mark unhold <paket-adi>
    

    Örneğin;

     apt-mark unhold ejabberd
    
     ejabberd paketini tutma işlemi iptal edildi.