5- Managed shared libraries and packages Management Flashcards

1
Q

Any shared library file namw will have … in it

A

.so (shared object file which is a library)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

shared library locations

A

shared files between system and users

generally found in /lib/, usr/lib, /usr/lib64, /usr/local/lib

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

static linking to shared libraries

A

Applications CONTAIN a full copy of the .so aka shared library file.
The contained library has all the characteristics expected by the application.
The library is that it is a fixed version and so doesn’t have the updates and fixes of later versions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

ldd

A

list of libraries that the application uses

ldd to know different libraries required
Ex : Which sshd –> ldd /usr/sbin/sshd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ldconfig

A

Updates ld.so.cache file (located in /etc/)

creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories ( /lib/, usr/lib, /usr/lib64, /usr/local/lib)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what’s /etc/ld.so.conf

A

It holds path settings which point to directories that hold (dynamic) libraries. It’s used by ldconfig to create necessary links and cache.
Programs, when dynamicaly compiled, need libraries to run. In general ld.so.conf holds the basic directories where these libs can be found. Sometimes you have to add another line to that file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

aptitude vs synaptic

A

GUI based applications for Debian package management.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

where are the Debian package configuration files?

A

/etc/apt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

source.list

A

define the repositories that come with the system, which it means the repositories that will be installed during system installation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Two type of repositories are defined in source.list

A

deb repositories: which is a binary repository which will install libraries, application packages, ..etc
deb-src repository it contains the related source code for the packages that identified by deb repository

  • Debian/ubuntu use a nick name (trusty used in 16.04 distribution) in url repository to pull information.
  • restricted keyword it means a restricted software that it does not require license
  • universe that software is not supported it means that it would not get software update.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Command to update system app

A

apt-get update

  • Any changes in repository configuration file required this command.
  • This command updates all the repository to get a list of all the packages for each one of the URLs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

/etc/apt/source.list.d

A

directory in Ubuntu/Debian where third-party (non Ubuntu or Debian) repositories can be added

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How to add a new third-party repository for apt?

A

create a file in /etc/sources.list.d with the URL, and other qualifiers, then run apt-get update to refresh your local repo cache.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

apt-get upgrade

A
  • must be used after apt-get update
  • it updates the existing system and any installed software to the newest version that reported from the configuration repository for this distribution.
  • to upgrade the system: apt-get dist-upgrade
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

to remove app

A

apt-get remove app

- it does not remove config files that has been changed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

apt-get purge app

A

removes the packages and the configuration files

17
Q

a command to search for a package in a system

A

apt-cache search app

- This command will show any application that has similar name.

18
Q

a command to show information about specific package

How to get information about sshd?

A

apt-cache show app

apt-cache show sshd

19
Q

a command to show more technical information about thepackage

A

apt-cache showpkg app

- it show the required dependencies