Install Package Management Flashcards

1
Q

What does LDCONFIG do?

A

Shared objects being updated or update cache. Or if you made changes to ld.so.conf

LDCONFIG

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

What are Libraries?

A

Libraries provide applications with reusable functions.

Usually contained in /lib, /lib64,/usr/lib and /usr/lib64

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

What are repositories?

A

Locations from which a package manager downloads software and dependencies.

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

Where is apt package management tool located?

A

/etc/apt

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

How to upgrade distribution version?

A

apt-get dist-upgrade

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

Where are program configuration files stored?

A

/etc/vsftpd.conf

Vsftpd.conf is example program config file

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

How do you remove software&config files on deb dist?

A

apt-get purge program | example apt-get purge vsftpd

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

How to get information about a package on deb?

A

apt-cache show vsftpd

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

The yum configuration file is located at?

A

/etc/yum.conf

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

How can you view yum transactions?

A

cd /var/log cat yum.log

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

Where are reposit locations commonly stored in Yum distros?

A

/etc/yum.repos.d

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

how do you see list of installed packages on debien?

A

dpkg -l

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

How do you download, but not install package in debian

A

apt-get download “nano”

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

How do you view installed packages on yum based distro?

A

yum list installed

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

list files and directories installed with the package nano on yum distro?

A

rpm -ql nano

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

What are environment variables?

A

Environment
variables are shortcuts that allow us to store filepaths, commands, or other information in a system-accessible
location

17
Q

give an example redirect to file /etc/task.txt

A

echo “This is the task” > /etc/task.txt

18
Q

How do you prevent redirect’s from overwriting an existing file?

A

use noclobber. set -o noclobber

19
Q

View PATH env variable

A

echo $PATH

20
Q

add path to /root/tmpbin

A

echo PATH=$PATH:/root/tmpbin