Welcome back friends, we are learning about system administration and this is second video, second lecture on System Administration. Here we are we are going to learn about package management, the RPM and other things. So let's start. So what is RPM package manager which is Red Hat package manager. The Red Hat package manager is a tool which is similar to a software installation tool which occurs in Windows and Mac. Here you can configure Avi software is to be installed or removed.
You could query various things and you could verify the package management. It is with a distribution installation, upgrading and removal of a software on Red Hat Enterprise Linux and RPM system consists of the local database, the RPM and related executables RPM front ends such as a young which is a command which is that could be used to install or remove an utility or a software via command line mode. It allows you to pack package files, various files. The local RPM database is maintained in the directory where a slash Li ve slash rpm. The database stores information about the installed packages, such as file attributes the package pre request sites and you are being an administrator. You rarely if modifies the database directly.
You can instead use the RPM command which could be used to directly modify the database The software could be installed using RPM is distributed through RPM package files, which are essentially compressed archives. Similar to zip or G zip of files associated dependencies information. The package files are named with various formats, the release version release version architecture and RPM will learning about this thing in next pages so let's move to installation and removing of software. There are various RPM options available there. You can install a software with the command RPM minus i for installing a file or either you could use my minus minus install To upgrade a system or utility, you could use RPM minus you to update to a fresh version of a tool, you could try RPM minus F, which refreshes your system removes the earlier version and install a new version. by downloading and installing you can similarly raise a version with RPM minus E. There is a syntax of writing this thing as you can install, suppose we want to install a file, we have to write RPM minus i hash in the pound symbol.
Zip. Suppose we have a file named zip. You can have ABC or any file name. Then place a dot that defines the version version here is a 2.3 Then there is a dot, which defines the architecture. Here we have x86 a i 386. Then place a.to define the redhead package management RPM file.
So this is the syntax of providing the RPM command you can install, upgrade, fishing or delete the database with this command. Similarly you can provide output with options minus p and minus h. You have any URL support for FTP and HTTP. There are many other install options that are available to address various special cases. We could go through various options in detail, but actually they are rarely used. Then there comes the updating of alabang kernel RPM when you are updating A simple file that would be a utility like links or a web browser, you could roughly use RPM minus u or RPM minus f command. But when you are a grading a kernel, you should not use minus u or minus f argument for various reasons.
Because, when you write minus u and minus f options, it determines whether a version already exists on the system. And if so, if the version exists, whether the version to be installed is a new year newer, it checks whether your new version is a new actually new or whether it is old. If it is new, the RPM first installs the new version, thereby replacing old files. The old files are being deleted. Except those markers configuration file only configuration files have been left. Rest other files are being vanished.
Simply gone. Attend remove the old packages, but only delete files that do not exist in the new version. Because of upgrading, it removes the previous kernel version. And if you are newly installed kernel proofs are nice table because you don't know whether a new version would run or not. And the old kernel files have gone deleted you could be left with an unbootable system the system is gone, you have upgraded your system, the all the previous panel has been deleted and your system crashes, you could not boot your organs restart your operating system anyhow. You only have an option.
You could you would have to restore to alternate both media such as both floppy or CD to the router system. When you run and install instead of an upgrade, the old version of the kernel is still available and can be selected from the bootloader. You have to install other than upgrade or fresh new system if you are dealing with kernel. Rest fine with other utilities. You have various options like minus IVs. To determine the kernel version, you can vote new kernel to test, you can revert to old kernel if a problem arises.
When you use this user install version minus i VH command you can delete the old version if no problem exists later on. First you install a new version without deleting the earlier one. Then we will come to rpm queries which allows you to execute different queries on installed packages and uninstalled packages. The center for writing RPM query is simple similar simple RPM minus q minus q argument shows that it is a query you have to write in the format of what package which package you have to deal with and which information you want to retry. For installed packages, you have various options, rpm minus QA, the QA argument list installed packages, all the packages that are being installed on the system minus q f space file name shows the owning package minus q i. Space package name shows the general information about the package.
Similarly minus q L is base package name list of files in a package. Similarly, on an install package options, you could execute a minus q IP and minus q LP for a package file system. Similarly, for RPM verification the package management verification on installed RPM file you could execute different commands like RPM minus V i p minus VP and wireframe is V A for verification of the file, whether it is being installed or not properly installed and the various details you could check you have to perform a signature verification before our package installation by writing the RPM minus minus import RPM GPG key then the RPM minus key argument followed by a package name and architecture and Dota RP their concern Very interesting thing, the violin or yum command in short, which is full form for Yellow Dog update. It was developed in any university and Fulham is not widely used.
This command is everything if you want to install remove or update a package or a system or an utility or software on redhead it is a front end to rpm It is designed to resolve package dependencies it can locate packages across multiple repositories. It is a replacement for up to date command for installing a package using yum command you have to write why you have is paste install command is paste the package name with architecture and dot RPM file. Similarly, you could write remove and update argument with you to remove and update packets respectively. You can search packages or files. Using the board provides argument on em. You can search with a search term.
Suppose that you want to search a particular string. On the package, you would write the young search with the search item system. Similarly, you could list everything with the argument, young is face list. All available extras installed recent updates and so on. You could get information of a package name with young space info, command, then the package name. You could search a particular file in the package letter word provides argument You could configure additional repositories, where you can create a file in etc directory yum dot repos dot Dev and file for a repository.
The required information for configuring additional repositories is here to provide a repository name. Then name equals to a nice description about your repository. then provide base URL for a repository from where it has to be downloaded. enabled equals to one and GPG check goes to one you have to define these things in the particular file. You can create a private repository and by creating a directory to hold your packages, you have to create a directory First, make this directory available by HTTP and FTP. Which can be downloaded by other users, you can install a creator create repo RPM, then run the Create repo command.
With a minus V argument and the package directory you have to provide your directory for the package. And the repository will be created on report data subdirectory and the needed support files for the file to be created as a repository. Then there comes a third thing that is a Red Hat network, which is a centralized platform for system management. It provides our Red Hat software packages, it shows a four errata level four system you can update many systems at once. Using Red Hat network, it allows a full Lifecycle Management. It is web based management interface.
It uses HTTPS for secure transaction or for all transactions. Then we have Red Hat server network server, which is rH m.redhead.com, or local satellite proxy, which is a web based management of machines. It provides a proxy caches for Red Hat network traffic. Origin satellite provides an autonomous Reddit network. You could go with a proxy or satellite based on your users. Name that comes out Red Hat network accounts where users for info where RFM users Red Hat network users can register for machines or web based management system ID for automatic authentication of system is being required.
And you can use various utilities provided by Red Hat. Then there comes our entitlements, which are software channels subscribed by your system. You can grant access to software channels for subscribing by a system. The channels could be based channel the child channels. It defines the level of service. You can define update management, provisioning and monitoring of services.
Then there is another thing that is a Red Hat network line where registration and interactive usage and remote management could be done using various utilities. You can select to update location or That is origin or local or satellite or proxy. By running the command origin underscore register. You could enter the account information for authenticating to Red Hat network, satellite or proxy. For interactive usage, you could use the yum plugin for downloading packages from Red Hat network. You could which you could configure the interactive usage in origin plug in configuration file, located in etc yum.
Then for remote management, you could go with RFM St. Paul, for every four hours, which has been updated every four hours or four immediately, with origin underscore C, E ck IRA chain underscore check poll which exists immediately. So, this was about package management. We have learned about various things on packages and we can install with install update or delete with yum. We have learned about cautions with that we have to take for updating the kernel system and we have learned about different utilities