1. | Start the RPM Package Management Tool. |
|
2. | Install a package ncftp , an improved FTP client, using the RPM command line interface. |
|
3. | Display the RPM package information (for example, ncftp ) on the command line. |
|
4. | Uninstall the same package, ncftp , using the RPM command line interface without verifying package dependencies. |
|
5. | Find a package that owns the file installed on your system (for example, /bin/vi ). |
|
6. | Display the package information and list the files installed by a package (for example, wget ) on your system before even installing it. |
|
7. | Use up2date to list the package updates available to download without using X. |
|
8. | Use yum help to find the option to check for package updates for your system, and then run the command to do the same. |
|
9. | Use APT to update the package indexes from the sources. In other words, use APT to check for updates from the RPM sources. |
|
Answers
1. | To start the RPM Package Management Tool, select System Settings>Add/Remove Applications from the Main Menu. You can also start the RPM Package Management Tool from the command line by typing the following: $ system-config-packages |
2. | Find out the ncftp packages from the Fedora distribution and execute the following command at the command line: rpm ivh ncftp-3.1.7-2.i386.rpm /etc/security/selinux/file_contexts: No such file or directory Preparing... ########################################### [100%] 1:ncftp ########################################### [100%] |
3. | To display the RPM package information on the command line, execute the following on the shell prompt: rpm -qip ncftp-3.1.7-2.i386.rpm Name : ncftp Relocations: /usr Version : 3.1.7 Vendor: Red Hat, Inc. Release : 2 Build Date: Tue 17 Feb 2004 10:21:31 GMT Install Date: (not installed) Build Host: tweety.devel.redhat.com Group : Applications/Internet Source RPM: ncftp-3.1.7-2.src.rpm Size : 1077786 License: Distributable Signature : DSA/SHA1, Wed 17 Mar 2004 19:15:02 GMT, Key ID da84cbd430c9ecf8 Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> URL : http://www.ncftp.com/ncftp/ Summary : An improved FTP client. Description : Ncftp is an improved FTP client. Ncftp's improvements include support for command line editing, command histories, recursive gets, automatic anonymous logins, and more. |
4. | To uninstall the rpm, execute the following command: rpm e --nodeps ncftp |
5. | To find a package that owns the file /bin/vi , execute the following command on the shell prompt: rpm qf /bin/vi |
6. | To list the packages owned by a packages like wget , execute the following command on the shell prompt: rpm qpil wget-1.9.1-5.i386.rpm Name : wget Relocations: (not relocatable) Version : 1.9.1 Vendor: Red Hat, Inc. Release : 5 Build Date: Thu 11 Mar 2004 16:24:47 GMT Install Date: (not installed) Build Host: tweety.devel.redhat.com Group : Applications/Internet Source RPM: wget-1.9.1-5.src.rpm Size : 1210725 License: GPL Signature : DSA/SHA1, Wed 17 Mar 2004 18:52:55 GMT, Key ID da84cbd430c9ecf8 Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> URL : http://wget.sunsite.dk/ Summary : A utility for retrieving files using the HTTP or FTP protocols. Description : GNU Wget is a file retrieval utility which can use either the HTTP or FTP protocols. Wget features include the ability to work in the background while you are logged out, recursive retrieval of directories, file name wildcard matching, remote file timestamp storage and comparison, use of Rest with FTP servers and Range with HTTP servers to retrieve files over slow or unstable connections, support for Proxy servers, and configurability. /etc/wgetrc /usr/bin/wget /usr/share/doc/wget-1.9.1 /usr/share/doc/wget-1.9.1/AUTHORS /usr/share/doc/wget-1.9.1/MAILING-LIST /usr/share/doc/wget-1.9.1/NEWS ........ /usr/share/locale/zh_CN/LC_MESSAGES/wget.mo /usr/share/locale/zh_TW/LC_MESSAGES/wget.mo /usr/share/man/man1/wget.1.gz |
7. | Execute the following command on the shell prompt: up2date nox l |
8. | Read the yum manual by executing the following command on the shell prompt: man yum To find the package update using yum, execute the following command on the shell prompt: yum list update |
9. | To check the package updates using apt-get , execute the following command on the shell prompt: apt-get update |