This is the default location for repository information, but other locations may be specified in the YUM configuration file, normally /etc/
shows the corresponding to the location from which we installed gcc-gfortran on our Fedora 21 system.
All have basic command-line functionality, while additional tools can provide more user-friendly interfaces. When you install a Linux system, you typically install a large selection of packages.
The examples in this tutorial use a Fedora 20 system unless otherwise noted.
RPM, YUM, and APT (for Debian systems) have many similarities. Information about installed packages is kept in a database.
You will usually want the latest version of a package, but you can provide additional qualifications if you need an earlier version, or the i686 version instead of the x86_64 version.
See the section on specifying package names in the man pages for the files.
For RPM-based systems, YUM (or Yellowdog Updater Modified) provides just such a function.
shows how to install gcc-gfortran and the required prerequisites using the Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: gcc-gfortran x86_64 4.9.2-6.fc21 updates 7.7 M Installing for dependencies: libquadmath-devel x86_64 4.9.2-6.fc21 updates 37 k Transaction Summary ================================================================================ Install 1 Package ( 1 Dependent package) Total download size: 7.7 M Installed size: 18 M Is this ok [y/d/N]: y Downloading packages: (1/2): libquadmath-devel-4.9.2-6.fc21.x86_64| 37 k B (2/2): gcc-gfortran-4.9.2-6.fc21.x86_64| 7.7 MB -------------------------------------------------------------------------------- Total 1.6 MB/s | 7.7 MB Running transaction check Running transaction test Transaction test succeeded Running transaction (shutdown inhibited) Installing : libquadmath-devel-4.9.2-6.fc21.x86_64 1/2 Installing : gcc-gfortran-4.9.2-6.fc21.x86_64 2/2 Verifying : libquadmath-devel-4.9.2-6.fc21.x86_64 1/2 Verifying : gcc-gfortran-4.9.2-6.fc21.x86_64 2/2 Installed: gcc-gfortran.x86_64 0:4.9.2-6.fc21 Dependency Installed: libquadmath-devel.x86_64 0:4.9.2-6.fc21 Complete!
As Linux developers have striven to make Linux easier to use, the basic tools have been supplemented by other tools, including GUI tools, which hide some of the complexities of the basic tools from the end user.
In this tutorial and in the tutorial on Debian package management, we focus on the basic tools, although we mention some of the other tools so you can pursue them further.
[N/y] n [[email protected] ~]$ which gfortran /usr/bin/which: no gfortran in (/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin: /home/ian/.local/bin:/home/ian/bin) [[email protected] ~]$ type gfortran bash: type: gfortran: not found command is in the gfortran package.
This is often a good guess, but not always the right one and not the right one in this case. Assuming that you know it's really in the gcc-gfortran package and that you downloaded or otherwise acquired a copy of the package, you might try installing it using the command knows that the package has a dependency, but unfortunately, it won't help you resolve that dependency.
This tutorial focuses on the Red Hat Package Manager (RPM), which was developed by Red Hat, as well as the Yellowdog Updater Modified (YUM), which was originally developed to manage Red Hat Linux systems at Duke University's Physics department.