102 - Linux Installation and Package Management
102 - Linux Installation and Package Management
102 - Linux Installation and Package Management
logical partitions.
5
102: Linux Installation and
Package Management
Hard Drive Partitions
6
102: Linux Installation and
Package Management
Hard Drive Partitions – PATA (Parallel ATA)
Physical location Device Name
… …
8
102: Linux Installation and
Package Management
Hard Drive Partitions – common partitioning
schemes for smaller systems
Partition Descrition
on Linux machines.
ext3 - an extension of the ext2 filesystem which
by Hans Reiser
15
102: Linux Installation and
Package Management
Managing swap space
Swap space does not contain a file system but is accessed
accessed through
17
102: Linux Installation and
Package Management
2. Installing boot manager
A boot loader is in the MBR, system loads what is in the MBR to
RAM.
In Linux there are two boot loaders:
Lilo: LInux LOader.
Grub: Grand Unified Boot Loader.
Boot loaders allow selection of images one would like to boot
from.
GRUB is today's default boot loader for many distributions.
When installing Windows with Linux, install Windows first and
/boot/grub/grub.conf
/boot/grub/menu.lst Files we edit to
configure
Grub uses hdx – to refer to hard grub
disks irrespective of
PATA/SATA, e.g. hd0
22
102: Linux Installation and
Package Management
2. Installing boot manager
GRUB Boot Loader … contd.
Sample of a
grub
configuration
file
23
102: Linux Installation and
Package Management
3. Manage Shared Libraries
Key knowledge areas
identify shared libraries
Identify the typical locations of system libraries
Load shared libraries
24
102: Linux Installation and
Package Management
3. Manage Shared Libraries
Introduction
A library is a set of functions that programs can use to implement
their functionalities.
When building a program, those libraries can be statically(the
application
Dynamically link required dependency at run time.
25
102: Linux Installation and
Package Management
3. Manage Shared Libraries
Introduction … contd
Trusted library file locations in Linux
/lib – used mainly by /bin programs
/usr/lib – used mainly by /usr/bin programs
Additional locations for library files can be
specified in the /etc/ld.so.conf file. This file in turn
include all files under /etc/ld.so.confi.d/ directory
$ldconfig – command creates fast caches at
applications
e.g. $ldd /usr/sbin/apache2
27
102: Linux Installation and
Package Management
3. Manage Shared Libraries
The LD_LIBRARY_PATH
Used to override the default search path for dynamic libraries.
packages
Find packages containing specific files or libraries
packages
Find packages containing specific files or libraries
Introduction
There are two main package management system in
use today:
RPM package manager – distributions derived from
Redhat
DPKG manager – distributions derived from Debain
The debian system is more strict and configurable
than the RPM system and is used by Debian
derivative such as Ubuntu.
31
102: Linux Installation and Package Management
4. Debian Package Management … contd.
Package Naming
Debain package names are formed as follows
name_version-release_architecture.deb
e.g. xxchat_2.8.6-4ubuntu5_amd64.deb
Release number – which debian release
Architecture – a computer architecture (i386, sparc, all)
dpkg
Command tool used to manage Debian Packages
Provide package information about: status, selection
dpkg … contd
33
102: Linux Installation and Package Management
4. Debian Package Management … contd.
dpkg … contd
34
102: Linux Installation and Package Management
4. Debian Package Management … contd.
dpkg … contd
Actions
Action Description
-l Print list of files
-s Shows information about a particular installed package
dpkg … contd
Options
Option Description
--force-thing Force dpkg, force-depends, force-downgrade
on the network
Once those two files are configured, two command tools are used for