User Tools

Site Tools


управление_по_в_ubuntu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
управление_по_в_ubuntu [2010/08/13 12:54]
val
управление_по_в_ubuntu [2011/02/11 15:07]
val removed
Line 2: Line 2:
  
 ===== Использование dpkg ===== ===== Использование dpkg =====
 +
 +<​code>​
 +# cat /​var/​lib/​dpkg/​status
 +</​code>​
  
 ==== Установленные пакеты ==== ==== Установленные пакеты ====
Line 10: Line 14:
 ==== Содержимое пакета ==== ==== Содержимое пакета ====
 <​code>​ <​code>​
-root@hostX:​~#​ dpkg-query ​-L libpam-opie+root@hostX:​~#​ dpkg -L libpam-opie
 </​code>​ </​code>​
  
 ==== В какой пакет входит файл ==== ==== В какой пакет входит файл ====
 <​code>​ <​code>​
-root@hostX:​~#​ dpkg-query ​-S /​etc/​ldap/​ldap.conf+root@hostX:​~#​ dpkg -S /​etc/​ldap/​ldap.conf
 </​code>​ </​code>​
  
Line 22: Line 26:
 ==== Файл /​etc/​apt/​sources.list ==== ==== Файл /​etc/​apt/​sources.list ====
 <​code>​ <​code>​
-... +root@gate:​~#​ cat /​etc/​apt/​sources.list 
-deb http://us.archive.ubuntu.com/​ubuntu/ ​hardy main restricted +</​code><​code>​ 
-deb-src http://us.archive.ubuntu.com/​ubuntu/ ​hardy main restricted +deb http://ru.archive.ubuntu.com/​ubuntu/ ​lucid main restricted ​universe multiverse 
- +deb-src http://ru.archive.ubuntu.com/​ubuntu/ ​lucid main restricted ​universe multiverse 
-deb http://us.archive.ubuntu.com/​ubuntu/ ​hardy-updates main restricted +deb http://ru.archive.ubuntu.com/​ubuntu/ ​lucid-updates main restricted ​universe multiverse 
-deb-src http://us.archive.ubuntu.com/​ubuntu/ ​hardy-updates main restricted +deb-src http://ru.archive.ubuntu.com/​ubuntu/ ​lucid-updates main restricted ​universe multiverse 
-...+deb http://​security.ubuntu.com/ubuntu lucid-security main restricted universe multiverse 
 +deb-src http://​security.ubuntu.com/​ubuntu lucid-security main restricted universe multiverse
 </​code>​ </​code>​
  
Line 44: Line 49:
 <​code>​ <​code>​
 root@hostX:​~#​ apt-cache search telnetd root@hostX:​~#​ apt-cache search telnetd
 +</​code>​
 +
 +==== Поиск пакета (в том числе среди неустановленных) в который входит файл ====
 +<​code>​
 +root@hostX:​~#​ apt-get install apt-file
 +root@hostX:​~#​ apt-file update
 +root@hostX:​~#​ apt-file search stddef.h
 </​code>​ </​code>​
  
Line 76: Line 88:
 </​code>​ </​code>​
  
-==== Работа с исходными текстами ====+==== Настройка на использование http_proxy ==== 
 +<​code>​ 
 +root@hostX:​~#​ export http_proxy="​http://​gate.isp.un:​3128/"​ 
 +</​code>​ 
 + 
 +===== Работа с исходными текстами ​=====
 <​code>​ <​code>​
 root@hostX:​~#​ apt-get install build-essential root@hostX:​~#​ apt-get install build-essential
 </​code>​ </​code>​
  
-=== Работа с исходными текстами пакета ===+==== Работа с исходными текстами пакета ​====
 <​code>​ <​code>​
-root@hostX:~# apt-get ​source ffmpeg +root@gate:~# apt-get ​build-dep snort 
-root@hostX:~# cd ffmpeg-*/ + 
-root@hostX:~/ffmpeg-0.cvs20070307# ​./configure +root@gate:~# apt-get source snort 
-root@hostX:​~/ffmpeg-0.cvs20070307#​ make + 
-root@hostX:​~/ffmpeg-0.cvs20070307#​ make install+http://www.snortsam.net/files/snort-plugin/​snortsam-2.8.5.diff.gz 
 + 
 +cd snort-2.8.5.2/ 
 + 
 +patch -p1 < ../​snortsam-2.8.5.diff 
 + 
 +apt-get ​install ​libpcap-dev libpcre3-dev libtool automake autoconf #​сократить!!! 
 + 
 +sh autojunk.sh 
 + 
 +dpkg-buildpackage -b
 </​code>​ </​code>​
  
-=== Работа с исходными текстами пакета в общем порядке ===+==== Работа с исходными текстами пакета в общем порядке ​====
 <​code>​ <​code>​
 # /​etc/​init.d/​ssh stop # /​etc/​init.d/​ssh stop
Line 106: Line 133:
 # make clean # make clean
 # /​etc/​init.d/​ssh start # /​etc/​init.d/​ssh start
-</​code>​ 
-==== Настройка на использование http_proxy ==== 
-<​code>​ 
-root@hostX:​~#​ export http_proxy="​http://​gate.isp.un:​3128/"​ 
 </​code>​ </​code>​
  
Line 143: Line 166:
 deb http://​gate/​ubuntu/​ lucid universe deb http://​gate/​ubuntu/​ lucid universe
 deb http://​gate/​ubuntu/​ lucid multiverse deb http://​gate/​ubuntu/​ lucid multiverse
 +</​code>​
 +
 +===== Если установка прервалась на середине процесса,​ и вы больше не можете ни установить,​ ни удалить пакеты =====
 +<​code> ​
 +# apt-get -f install
 +# dpkg --configure -a
 </​code>​ </​code>​