9
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R. McClurg Linux Operating System © Copyright 2013, All Rights Reserved

A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R

Embed Size (px)

Citation preview

Page 1: A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R

A Practical Guide to Fedora and Red Hat Enterprise LinuxUnit 8: Installing Software in LinuxChapter 13: Downloading and Installing Software

By Fred R. McClurg

Linux Operating System

© Copyright 2013, All Rights Reserved

Page 2: A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R

rpm: RedHat Package Manager

Description: CLI for installs, uninstalls, upgrades, queries

Installs◦rpm -Uvh \samba-3.5.8-76.fc14.i686.rpm

Page 3: A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R

yum: Yellow Dog Updater, Modified

Description: CLI for installs, uninstalls, upgrades, queries and checks dependencies

◦Command line utility◦Already installed◦Checks for compatibility◦Checks for dependencies◦Installs required software◦Upgrades out of date software

Page 4: A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R

yum: Optionsyum install

◦Description: Downloads and installs software from yum repository. Installs any dependant packages

◦Syntax: yum install vim-enhanced

yum remove◦Description: Removes specified

packages◦Syntax: yum remove vim-enhanced

Page 5: A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R

yum: Optionsyum list

◦Description: Lists all packages in the yum repository

◦Syntax: yum list | grep -i vim

yum search◦Description: Searches the string in the

package description, summary and name

◦Syntax: yum search vim

Page 6: A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R

Adding/Removing Software

Fedora◦gpk-application: GUI for adding and removing software

RHEL◦pirut: GUI for adding and removing software

Page 7: A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R

Compile/Install Source Code

1. tar -xvzf src.tar.gzand

2. ./configure3. make4. sudo make install

or2. ./configure && make

&& sudo make install

Page 8: A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R

Downloading without Browser

wget:◦Allows you to download files without a browser

wget \http://fedoraproject.org

wget -b \http://example.com/bigFile.tar.gz

Page 9: A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R

Using ftpftp prep.ai.mit.edu

◦User: anonymouscd pub/gnu/gcclscd gcc-4.6.0lcd c:\Users\Fred\Downloadsbinaryget gcc-4.6.0.tar.gzquit