0% found this document useful (0 votes)
8 views10 pages

RPM and Yum Package Management Guide

This document discusses RPM and YUM package management tools for Linux systems, how to configure an FTP server using VSFTPD on Fedora, and securing the FTP server with iptables firewall rules. It provides commands for querying, installing, updating, and removing packages with RPM and YUM, and configuring VSFTPD settings, user accounts, firewall rules to enable FTP access. The document also mentions installing and configuring NetworkManager and FileZilla tools.

Uploaded by

Safina Fatima
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views10 pages

RPM and Yum Package Management Guide

This document discusses RPM and YUM package management tools for Linux systems, how to configure an FTP server using VSFTPD on Fedora, and securing the FTP server with iptables firewall rules. It provides commands for querying, installing, updating, and removing packages with RPM and YUM, and configuring VSFTPD settings, user accounts, firewall rules to enable FTP access. The document also mentions installing and configuring NetworkManager and FileZilla tools.

Uploaded by

Safina Fatima
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

System

&
Network
Administration (MCSA & RHCSA)

Lecture By Waseem Ahmad


Topic :Yellow Dog UPDATER (yum, RPM)
RPM
RPM and SRPM
=>The two types of RPM is available Source Rpm with the source code also .
Naming Convention:
Package name -Version- Release – [Link]

No Arh: Architecture means its both for X86 and 64 bit and platform independent package

cd var/lib/rpm for installation of RPM => rpm –ivh packagename


Quiz
 We have to make 3 Users and two groups .
 Add 2 users in group 1 and 1 user in group2.
 Restrict groups user to access each others files .
 ---------------------------------------------------------------------------------------
 Make user BSIT and place some data in his Home directory .
 After placing data disable this user account.
 Delete this user BSIT Permanently with its complete data .
RPM (cont)
If you want to query the database
Rpm -qa | grep vsftpd
For deletion of package
=>Rpm –e package name
If you want to update the package
=> Rpm -Uvh packagname
Check either package have documentation , configuration file ,information
=>rpm –qd cups =>rpm –qc cups =>rpm –qi cups
Yum(Automatic Resolve Package dependencies)
 Yum search package-name
 Yum info package-name
 Yum install package –name
 Yum remove package-name
 Yum grouplist package-name yum grouplist ”webserver”
 Yum groupinstall package-name
 Yum search samba
 Yum install samba*
Network Manager
 IFCONFIG
 /etc/sysconfig/network-scripts/
 Ifconfig eth0 [Link] netmask [Link]
 Dhclient eth0
FTP Server
VSFTPD
 Yum install ftp vsftpd -y
 Rpm –ivh vsftpd
 ------------------------
Vim /etc/vsftpd/[Link]
Modify banner
ASCI Dowload and uypload enable
Use_localtime=YES
----------------------
Systemctl enable vsftpd
Systemctl start vsftpd
------------------------
Firewall-cmd –-- permanent --add-port=21/tcp-
Firewall-cmd -- permanent --add-service=ftp
----------------------

Firewall-cmd --reload
FTP Server

System-config-firewall& GUI

Setsebool -P ftp_home_dir on
Adduser ftp
Passwd ftp
Login by ftp [Link]
Iptables
 Yum install iptables-services
 Systemctl mask firewalld
 Systemctl enable iptables
 Systemctl stop firewalld
 Systemctl start iptables

 Vim /etc/sysconfig/iptables

 Add line: -A INPUT -m state – NEW –m tcp –p tcp --dport 21 -j ACCEPT


 Systemctl restart iptables

 Install Filezila
 Yum install epel-release
 Yum install filezilla

You might also like