Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to check the details of a software package on Linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to check the details of a software package on Linux, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

YUM command: get package information on RHEL and CentOS systems

YUM English literal translation is "Yellow Dog updater-modified Yellowdog Updater, Modified", it is an open source command line-based package manager front-end utility. It is widely used in RPM-based systems, such as RHEL and CentOS.

Yum is the main tool for obtaining, installing, deleting, and querying RPM packages in official distribution repositories and other third-party distribution repositories.

(LCTT translation note: use yum info to get the information of python package)

# yum info pythonLoaded plugins: fastestmirror, securityLoading mirror speeds from cached hostfile * epel: epel.mirror.constant.comInstalled PackagesName: pythonArch: x86_64Version: 2.6.6Release: 78 kRepo: installedFrom repo: updatesSummary: An interpreted, interactive, object-oriented programming languageURL: http://www.python.org/License: PythonDescription: Python is an interpreted, interactive, object-oriented programming: language often compared to Tcl, Perl Scheme or Java. Python includes: modules, classes, exceptions, very high level dynamic data types and: dynamic typing. Python supports interfaces to many system calls and: libraries, as well as to various windowing systems (X11, Motif, Tk,: Mac and MFC). :: Programmers can write new built-in modules for Python in C or Clearing. : Python can be used as an extension language for applications that need: a programmable interface. :: Note that documentation for Python is provided in the python-docs: package. :: This package provides the "python" executable; most of the actual: implementation is within the "python-libs" package.YUMDB command: view package information on RHEL and CentOS systems

The yumdb info command provides information similar to yum info, but it also provides additional information such as package check value, package type, and user information (by whom). Since yum version 3.2.26, yum has started to store additional information outside the rpm database (as shown here, user indicates that the package was installed by the user, while dep indicates that the package was installed as a dependent package).

(LCTT translation note: use yumdb info to get information about python packages)

# yumdb info pythonLoaded plugins: fastestmirrorpython-2.6.6-66.el6_8.x86_64 changed_by = 4294967295 checksum_data = 53c75a1756e5b4f6564c5229a37948c9b4561e0bf58076bd7dab7aff85a417f2 checksum_type = sha256 command_line = update-y from_repo = updates from_repo_revision = 1488370672 from_repo_timestamp = 1488371100 installed_by = 4294967295 reason = dep releasever = 6RPM command: view package information on RHEL/CentOS/Fedora system

RPM is literally translated as "Red Hat Manager RedHat Package Manager", which is a powerful command line package management tool under RedHat and its variants (such as RHEL, CentOS, Fedora, openSUSE, Megeia). It allows you to easily install, upgrade, delete, query and verify software on your system or server. The RPM file ends with .rpm. The RPM package consists of the software libraries it depends on and other dependencies, and it does not conflict with packages that are already installed on the system.

(LCTT translation note: use rpm-qi to query the specific information of nano packages)

# rpm-qi nanoName: nano Relocations: (not relocatable) Version: 2.0.9 Vendor: CentOSRelease: 7.el6 Build Date: Fri 12 Nov 2010 02:18:36 AM ESTInstall Date: Fri 03 Mar 2017 08:57:47 AM EST Build Host: c5b2.bsys.dev.centos.orgGroup: Applications / Editors Source RPM: nano-2.0.9-7.el6.src.rpmSize: 1588347 License: GPLv3+Signature: RSA/8 Sun 03 Jul 2011 12:46:50 AM EDT, Key ID 0946fca2c105b9dePackager: CentOS BuildSystem URL: http://www.nano-editor.orgSummary: A small text editorDescription: GNU nano is a small and friendly text editor.DNF command: view package information on Fedora system

DNF means "trendy YumDandified yum", and we can also think of DNF as the next generation of yum package manager (a branch of Yum) that uses the hawkey/libsolv library in the background. Ale Kozumpll í k started developing DNF on Fedora 18 and officially released it on Fedora 22. The dnf command is used to install, update, search, and delete packages on Fedora 22 and later systems. It can automatically solve the problem of package dependency during package installation.

(LCTT Note: use dnf info to view tilix package information)

$dnf info tilixLast metadata expiration check: 27 days 10:00:23 ago on Wed 04 Oct 2017 06:43:27 AM IST.Installed PackagesName: tilixVersion: 1.6.4Release: 1.fc26Arch: x86_64Size: 3.6MSource: tilix-1.6.4-1.fc26.src.rpmRepo: @ SystemFrom repo: @ commandlineSummary: Tiling terminal emulatorURL: https://github.com/gnunn1/tilixLicense : MPLv2.0 and GPLv3+ and CC-BY-SADescription: Tilix is a tiling terminal emulator with the following features:-Layout terminals in any fashion by splitting them horizontally or vertically:-Terminals can be re-arranged using drag and drop both within and between: windows:-Terminals can be detached into a new window via drag and drop:-Input can Be synchronized between terminals so commands typed in one: terminal are replicated to the others:-The grouping of terminals can be saved and loaded from disk:-Terminals support custom titles:-Color schemes are stored in files and custom color schemes can be created by: simply creating a new file:-Transparent background:-Supports notifications when processes are completed Out of view:: The application was written using GTK 3 and an effort was made to conform to: GNOME Human Interface Guidelines (HIG) .Zypper command: view package information on an openSUSE system

Zypper is a command line package manager that uses the libzypp library. Zypper provides functions such as software repository access, installation dependency resolution, package installation, and so on.

(LCTT Note: use zypper info to query the information of nano packages)

$zypper info nano Loading repository data...Reading installed packages... Information for package nano:--Repository: Main Repository (OSS) Name: nano Version: 2.4.2-5.3 Arch: x86 Vendor: openSUSE Installed Size: 1017.8 KiB Installed: No Status: not installed Source package: nano-2.4.2-5.3.src Summary: Pico editor clone with enhancementsDescription : GNU nano is a small and friendly text editor. It aims to emulate the Pico text editor while also offering a few enhancements.Pacman command: view package information on ArchLinux and Manjaro systems

Pacman means the package manager package manager utility. Pacman is a command line tool for installing, building, removing, and managing packages on Arch Linux. Its back end uses libalpm (Arch Linux package Manager (ALPM) library) to complete all functions.

(LCTT Note: use pacman-Qi to query bash package information)

$pacman-Qi bashName: bashVersion: 4.4.012-2Description: The GNU Bourne Again shellArchitecture: x86_64URL: http://www.gnu.org/software/bash/bash.htmlLicenses: GPLGroups: baseProvides: shDepends On: readline > = 7.0glibc ncursesOptional Deps: bash-completion: for tab completionRequired By: autoconf automake bison bzip2 ca-certificates-utils db Dhcpcd diffutils e2fsprogs fakeroot figlet findutils flex freetype2 gawk gdbm gettext gmp grub gzip icu iptables keyutils libgpg-error libksba libpcap libpng libtool lvm2 m4 man-db mkinitcpio nano neofetch nspr nss openresolv os-prober pacman pcre pcre2 shadow systemd texinfo vte-common which xdg-user-dirs xdg-utils xfsprogs xorg-mkfontdir xorg-xpr xzOptional For: NoneConflicts With: NoneReplaces: NoneInstalled Size: 7.13 MiBPackager: Jan Alexander Steffens (heftig) Build Date: Tue 14 Feb 2017 01:16:51 PM UTCInstall Date: Thu 24 Aug 2017 06:08:12 AM UTCInstall Reason: Explicitly installedInstall Script: NoValidated By: Signatureapt-cache command: view packet information on Debian/Ubuntu/Mint system

The apt-cache command displays a large amount of information in the apt internal database. This information is collected from different software sources in sources.list, so in a sense this information can also be thought of as some kind of cache. This information collection is performed when the apt update command is run.

(LCTT Note: use administrator privileges to query information about apache2 packages)

Sudo apt-cache show apache2Package: apache2Priority: optionalSection: webInstalled-Size: 473Maintainer: Ubuntu Developers Original-Maintainer: Debian Apache Maintainers Architecture: amd64Version: 2.4.12-2ubuntu2Replaces: apache2.2-commonProvides: httpd, httpd-cgiDepends: lsb-base, procps, perl, mime-support, apache2-bin (= 2.4.12-2ubuntu2), apache2-utils (> = 2.4.12-2ubuntu2) Pre-Depends: dpkg (> = 1.17.14) Recommends: ssl-certSuggests: www-browser, apache2-doc Apache2-suexec-pristine | apache2-suexec-custom, ufwConflicts: apache2.2-common (= 3.6.3-0ubuntu2), python3-tk (> = 3.6.3-1 ~), python3-venv (> = 3.6.3-0ubuntu2) Filename: pool/main/p/python3-defaults/python3_3.6.3-0ubuntu2_amd64.debSize: 8712MD5sum: a8bae494c6e5d1896287675faf40d373Description: interactive high-level object-oriented language (default python3 version) Original-Maintainer: Matthias Klose SHA1: 2daec885cea7d4dc83c284301c3bebf42b23e095SHA256: 865e509c91d2504a16c4b573dbe27e260c36fceec2add3fa43a30c1751d7e9bbHomepage: http://www.python.org/Task: minimal, ubuntu-core Ubuntu-coreDescription-md5: 950ebd8122c0a7340f0a740c295b9eabSupported: 9maptitude command: view package information on Debian/Ubuntu/Mint system

Aptitude is the text interface of the Debian GNU/Linux package management system. It allows users to view a list of installed packages and perform package management tasks such as installing, upgrading, and deleting packages. These management behaviors can also be performed from the graphical interface.

(LCTT Note: use aptitude show to view htop package information)

$aptitude show htopPackage: htop Version: 2.0.2-1State: installedAutomatically installed: noPriority: optionalSection: universe/utilsMaintainer: Ubuntu Developers Architecture: amd64Uncompressed Size: 216kDepends: libc6, libncursesw5 (> = 6), libtinfo5 (> = 6) Suggests: lsof, straceConflicts: htop:i386Description: interactive processes viewer Htop is an ncursed-based process viewer similar to top, but it allows one to scroll the list vertically and horizontally to see all processes and their full command lines. Tasks related to processes (killing, renicing) can be done without entering their PIDs.Homepage: http://hisham.hm/htop/ is all the contents of the article "how to check the details of a software package on Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report