Linux with Operating System Concepts



Download 5,65 Mb.
Pdf ko'rish
bet209/254
Sana22.07.2022
Hajmi5,65 Mb.
#840170
1   ...   205   206   207   208   209   210   211   212   ...   254
Bog'liq
Linux-with-Operating-System-Concepts-Fox-Richard-CRC-Press-2014

packagename
[
options
]
Yum has a number of different update options.
• check-update—checks the repository(ies) for any new updates to the package. If you 
do not specify any package name with check-update, you receive a list of all packages 
updated since your last update.
• update—upgrade the given software package (if an upgrade is available). If no pack-
age name is specified, this will attempt to update every currently installed package. 
Unless otherwise specified, if any packages are obsolete, they will be skipped. If the 
obsoletes flag is set to true (or the user specifies --
obsoletes
), then these packages 
will also be included.
• update-to—in this case, you specify a version number as well as the package name. It 
will update up to the given version number but not beyond it.
• upgrade—same as update except that the obsoletes flag is set to true.
• upgrade-to—same as update-to except that the obsoletes flag is set to true.
• groupupdate—performs updates on a group of packages based on a type. Recall from 
the Add/Remove Software approach to installing software, packages are grouped 
together. 
Note
: there is also a groupinstall available.
• reinstall—reinstalls from scratch a package that is already installed.
• downgroup—will downgrade to the most recent upgrade available prior to the cur-
rently installed package. This may not work if an older version is not available.


560

Linux with Operating System Concepts
13.7.2 System Updating from the GUI
In CentOS, you can perform a software update through the GUI. Along the top of the 
Gnome desktop menu bar, if software updates are available, you will see this symbol: . 
Clicking on it will bring up the software update window as shown in Figure 13.10.
You can select which packages to update, update all of them or update none of them. In 
this case, there are 90 updates available totaling 255.9 MB. These software updates not only 
are of applications software but also operating system updates. As the window reminds 
us, software updates “correct errors, eliminate security vulnerabilities, and provide new 
features.” There is no reason not to do the updates unless you are running very low on disk 
space. Even if you do not have time for the updates, you can launch them the next time you 
have to leave your workstation.
Other forms of software maintenance will include troubleshooting the software, pro-
ducing user documentation for the software, monitoring the system’s performance while 
executing software, and removing software. We will explore some of your options for trou-
bleshooting software in the next chapter.
We have already examined various monitoring tools available in Linux, such as the 
System Monitor, top, vmstat, iostat, and ps. Another handy command is 
pmap
, which 
reports on process memory usage. You can also explore many performance characteris-
tics of a running process in the /proc directory. Recall that every running process has its 
FIGURE 13.10 
CentOS update window.


Software Installation and Maintenance

561
own subdirectory, named after the PID. Within that subdirectory, you can find informa-
tion on the process’ CPU utilization (cpuinfo), memory usage (meminfo), file system usage 
(mounts), and numerous other useful pieces of information.
In some cases, software will come with its own monitoring program(s). For instance, the 
Apache web server can store performance information in log files or create reports that can 
be made available from the command line or even via a web browser.
13.7.3 Software Documentation
Producing documentation for software may or may not be part of a system administrator’s 
responsibility. To write useful documentation, learning how to perform technical report 
writing could be advantageous. The role of software documentation goes beyond merely 
“how to” use the software. Information placed in such documentation might include any 
or all of the following:
• How to install the software—although it is the system administrator’s role to install 
the software, this information could potentially help users who will install their 
own versions or future system administrators who might take over for the current 
administrators.
• How to configure the software—the system administrator may be responsible for 
configuring the software although this task may also fall on individual users. Or, the 
individual users may want to reconfigure the software to better fit their needs or style.
• How to maintain the software—upgrading the software, reporting bugs, creating or 
updating accounts and so forth are all tasks that may fall on the administrator or 
individual users.
• Training manuals—here, the administrator may write a step-by-step description 
of how to use the features of the software, including some of the more basic fea-
tures for naïve users and more advanced features for those who will use the software 
extensively.
• Errata—known problems in the software and solutions either derived locally or from 
the software vendor.
And of course, if the system administrator learns the software to produce documen-
tation, this makes the administrator a go-to person for questions from the users of the 
software.
13.7.4 Software Removal
The system administrator may at some point have to remove software. This occasion arises 
when the software is obsolete (has been replaced by something better) or the intended 
users of the software are no longer with the organization. It may also be necessary if free 
disk space is running low and a particular piece of software which is taking up too much 
space is deemed not worth keeping.


562

Linux with Operating System Concepts
Removing software can be a very tricky proposition when that software consists of files 
distributed across the file system. This is why the system administrator should always use 
the proper removal tool rather than just deleting files. All of the package manager pro-
grams that we have discussed have facilities to remove software.
Using the Add/Remove Software GUI, by default, Install is selected. To remove soft-
ware, if the package has already been installed, once you select it you choose Remove. This 
is located under the Selection menu. As expected, this will remove all of the files that cor-
respond to that particular package with the exception of files that are dependencies from 
other packages. You have an option of whether to retain or delete those files (if other files 
depend on these files, they should be retained).
In rpm, the –e or --erase option will erase the specified package. The command must 
include the package name, although in this case, it is merely the software title’s name, not 
the name of the RPM file (i.e., there is no version or release number and you do not end the 
name with .rpm). For yum, the option is remove as in 
yum remove 

Download 5,65 Mb.

Do'stlaringiz bilan baham:
1   ...   205   206   207   208   209   210   211   212   ...   254




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish