The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.

DFN30053 OPEN SOURCE OPERATING SYSTEM E-BOOK

Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by DR. NORLIZA BINTI ABDULLAH, 2021-11-17 09:12:15

DFN30053 OPEN SOURCE OPERATING SYSTEM E-BOOK

DFN30053 OPEN SOURCE OPERATING SYSTEM E-BOOK

Keywords: Ubuntu,Linux Operating System,Open Source Operating System

301

RPM vs. dpkg (cont.)  Querying DPKG Description

RPM dpkg -l List all installed packages
rpm -qa
rpm -ql dpkg -L List files in an installed
[package] [package] package

rpm -qi dpkg -p Show information about
[package] an installed package
rpm -qpi
[file.rpm] dpkg -I [file.deb] Show information about
rpm -qpl package file
[file.rpm]
dpkg -c [file.deb] List files in a package file

302

TRIES SOFTWARE
MANAGEMENT IN
LINUX SYSTEM
ENVIRONMENT

MANAGE RESPOSITORIES

SOFTWARE REPOSITORY 303

 Storage location from which software packages may be retrieved and
installed on a Linux machine

 The official repositories make it easy to install software, while also
providing a high level of security, since the software is thoroughly tested
and built specially for each version of your distribution

 Ubuntu distinguishes between software that is "free" and software that is
not free. For details of Ubuntu's Free Software Philosophy

 Ubuntu repositories included:
• Main - Canonical supported free and open-source software
• Universe - Community maintained free and open-source software
• Restricted - Proprietary drivers for devices
• Multiverse - Software restricted by copyright or legal issues

SOFTWARE REPOSITORY (CONT.) 304

 Most RPM or DPM packages are hosted on Internet software
repositories, to download and install packages, you can use:
 the yum (Yellowdog Updater Modified) command for RPM
 the apt / apt-get (Advanced Package Tool) command for
DPM

 Both yum and apt-get search online software repositories for
respective packages that map to your architecture, and
automatically install or upgrade those packages on your
system

UBUNTU REPOSITORIES 305

 The apt stores a list of repositories in the file:
• /etc/apt/sources.list

 and in any file with the suffix .list under the directory:
• /etc/apt/sources.list.d/

 Repository format:
• deb: repositories contain binaries or precompiled
packages
• deb-src: repositories contain the source code of the
packages
• the URI, if the location on the internet
• the release name or version of distribution
• the sections names or components

UBUNTU REPOSITORIES (CONT.) 306

 Adding the internet repositories:
deb [http://repo_address] [release] [section]

deb-src [http://repo_address] [release] [section]
 Adding Launchpad PPA (Personal Package Archive) repositories:

sudo add-apt-repository ppa:[repository_name]
 Update the changes:

sudo apt-get update

307

INSTALL ,
UPDATE ,
UPGRADE

GRAPHICAL UTILITIES

SOFTWARE UPDATE (CONT.)

308

SOFTWARE UPDATE

309

310

INSTALL ,
UPDATE ,
UPGRADE

COMMAND-LINE UTILITIES

311

APT-GET & APT-CACHE COMMANDS DESCRIPTION
sudo apt-cache pkgnames
sudo apt-cache search [keyword] to list all the available
sudo apt-cache show [package] packages
sudo apt-cache showpkg [package]
sudo apt-cache stat to search packages (with it
sudo apt-get update description)

sudo apt-get upgrade to check package
information

to check dependencies for a
package

to check statistics of cache

list of available packages
and their versions, but it
does not install or upgrade
any packages

to upgrade or install newer
versions of the packages

312

APT-GET & APT-CACHE (CONT.) COMMANDS DESCRIPTION
sudo apt-get install [package]
sudo apt-get download [package] to install/upgrade a
package
sudo apt-get remove [package]
sudo apt-get dist-upgrade to download a package
sudo apt-get check (without install, save on
working directory)
sudo apt-get –f install
sudo apt-get autoclean to remove a package

upgrade the kernel and
base package

update the package list and
checks for broken
dependencies

to fix broken packages

remove .deb files for
packages that are no longer
installed

313

MAIN REFERENCES

 Mohan. S. (2020). Linux Containers and Virtualization: A Kernels
perspective. New York: Apress. (ISBN: 1484262824)

 Blum. R. (2020). Linux for Dummies 10th Edition. For Dummies. (ISBN:
1119704251)

REFERENCES:

314

ADDITIONAL REFERENCES

 Mining, E. (2019). Linux for Beginners: A practical and Comprehensive
Guide to Learn Linux Operating System and Master Linux Command
Line. Contains Self-Evaluation Test to Verify Your Learning Level. US:
Amazon Digital Services LLC.

 Lindsay, A. (2019). A Linux: 2019 New Easy User Manual to Learn the
Linux Operating System and Linux Command Line. Amazon Digital
Services LLC.

 William. S. (2019). The Linux Command Line, 2nd Edition: A Complete
Introduction. No Starch Press. (ISBN: 1593279523)

 Christopher. N. (2019). Linux Bible 10th Edition. New York, US: John
Wiley & Sons Inc. (ISBN: 978-1-119-57889-5)


Click to View FlipBook Version