Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Tham khảo tài liệu 'linux all in one desk reference for dummies phần 7', công nghệ thông tin, hệ điều hành phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 424 Working with RPM Fites You can see a list of all installed RPMs by using the following command rpm -qa You see a long list of RPMs scroll by your screen. To view the list one screen at a time type rpm -qa more If you want to search for a specific package feed the output of rpm -qa to the grep command. For example to see all packages with kernel in their names type rpm -qa grep kernel The result depends on what parts of the kernel RPMs are installed on a system. You can query much more than a package s version number with the rpm -q command. By adding single-letter options you can find out other useful information. For example try the following command to see the files in the cups package rpm -ql cups Here are a few more useful forms of the rpm -q commands to query information about a package to use any of these rpm -q commands type the command followed by the package name rpm -qc Lists all configuration files in a package. rpm -qd Lists all documentation files in a package. These are usually the online manual pages also known as man pages . rpm -qf Displays the name of the package if any to which a specified file belongs. rpm -qi Displays detailed information about a package including version number size installation date and a brief description. rpm -ql Lists all the files in a package. For some packages you see a very long list. rpm -qs Lists the state of all files in a package the state of a file can be one of the following normal not installed or replaced . TEAM LinG - Live Informative Non-cost and Genuine Working with RPM Fites 425 These rpm commands provide information about installed packages only. If you want to find information about an uninstalled RPM file add the letter p IJwj to the command-line option of each command. For example to view the list of files in the RPM file named rdist-6.1.5-792.i586.rpm go to the directory where that file is located and then type the following command rpm -qpl rdist- .rpm Of course this command works only if the .