Linux 45

download Linux 45

of 1

Transcript of Linux 45

  • 8/10/2019 Linux 45

    1/1

    rpm ql routed-0.17 orrpm ql routedFinally if we want to find out which package installed the file /usr/sbin/routedthe rpm database can be queried with:

    rpm qf /usr/sbin/routedThree query types: uninstalled packages, installed packages and files

    Query Type OptionPackage file -qpInstalled package -qFile -qf

    An extra option will allow you to get information on all installed files l, documentation d configuration files c, etc ...The following special options are also available--nodeps this allows to install without regard to dependencies--force force an upgrade--test doesnt actually install or upgrade, just prints to stdout--requires show package requirement

    name-version-release.src.rpmThe source code for many RPM packages is also available as an RPM package and will be used to build a binary package. The naming convention is:

    These packages contain at least two files, the tarball with the code and a specfile. The spec file contains instructions to patch, compile and build the RPM package. If the code needs to be patched before compilation then the patches are included in the source package.There are three different ways to build a RPM package. We will assume that we have a package called name-version-release.src.rpm.

    Reflection

    Module summary

    Summary In this module you learned you learned how to install software in Linux.You learned that software can be installed from source files and from packagedsoftware e.g rpm or debian packages.It is also important to also note that there exist package management software that makes it easier for you to install packaged software in linux. These include: Synaptic Package Manager: Synaptic is a computer program which is a GTK+ graphial user interface front-end to the Advanced Packaging Tool for the Debian package management system. Synaptic is usually used on systems based on deb packages but can also be used on systems based on RPM packages. It can be used to install,remove and upgrade software packages and to add repositories. Yast: Yet another Setup Tool (YaST) is an RPM-based operating system setup and

    onfiguration tool that is featured in the openSUSE Linux distribution, as well as Novell's derived commercial distributions. It features tools that can configure many aspects of the system. It is also part of the defunct United Linux. The first SuSE distribution that included YaST was released in May, 1996. YaST is free software that Novell has made available under the GPL.YaST2 is a tool for administering and maintaining a SUSE Linux installation. It allows administrators toinstall software, configure hardware, set up networks and servers, and more.