The Archives

  • 17.Jan.10
    RPM: Listing dependencies of an rpm file shell | rafacas | (0)
    rpm is a powerful Package Manager, which can be used to build, install, query, verify, update and erase individual software packages. It is the default package manager for several popular distributions such as Red Hat, Fedora, Suse and many others. The list of dependencies an rpm package has, that is, the packages that must be installed in the system for it to work properly, can be shown with the following command if the argument is the rpm file: # rpm -qpR rsync-3.0.6-0.fc10.i386.rpm config(rsync) = 3.0.6-0.fc10 libacl.so.1 libacl.so.1(ACL_1.0) libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4) libc.so.6(GLIBC_2.8) ...
  • 22.Sep.09
    Listing all service status cmd, shell | rafacas | (0)
    # service --status-all anacron (pid 2435) is running... atd (pid 2405) is running... auditd (pid 1777) is running... Avahi daemon is running cpuspeed is stopped crond (pid 2385) is running... cupsd (pid 2424) is running... dnsmasq is stopped hald (pid 2129) is running... httpd is stopped [...] Runs all init scripts (located in /etc/init.d), in alphabetical order, with the status option. Note: Only in Red Hat and redhat-like distros (Fedora, Mandriva,...).
  • 12.Apr.09
    Extracting an rpm package without installing it cmd | rafacas | (0)
    $ rpm2cpio myrpmfile.rpm | cpio -idmv Extracts an rpm package in the current directory without installing it. It is very useful when you only want to see its contents.
  • 31.Mar.09
    RPM: listing the contents of an rpm file cmd | rafacas | (0)
    $ rpm -qpl kernel-2.6.27.19-170.2.35.fc10.i686.rpm /boot/System.map-2.6.27.19-170.2.35.fc10.i686 /boot/config-2.6.27.19-170.2.35.fc10.i686 /boot/initrd-2.6.27.19-170.2.35.fc10.i686.img /boot/vmlinuz-2.6.27.19-170.2.35.fc10.i686 [...] Lists all the files in an RPM file. Also note that rpm can query remote RPM files through FTP and HTTP.
  • 22.Mar.09
    RPM: listing files in installed packages cmd, network | rafacas | (0)
    # rpm -ql postgresql-libs /usr/lib/libecpg.so.6 /usr/lib/libecpg.so.6.0 /usr/lib/libecpg_compat.so.3 /usr/lib/libecpg_compat.so.3.0 /usr/lib/libpgtypes.so.3 /usr/lib/libpgtypes.so.3.0 /usr/lib/libpq.so.5 /usr/lib/libpq.so.5.1 [...] Lists all files of an installed package. It works only if the package is already installed on your system