Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: debian: cdrom vs internet


  • Subject: Re: lug-bg: debian: cdrom vs internet
  • From: George Danchev <danchev@xxxxxxxxx>
  • Date: Fri, 10 Oct 2003 12:04:09 +0300

On Wednesday 08 October 2003 16:36, raptor wrote:
> hi,
>
> setnah si cd-romite sys apt-cdrom, kak da go nakaram ako daden paket go ima
> w cd-to izobshto da ne tyrsi w internet za po nowi wersii..

ami apt vinagi ste predpo4ete po-nova versiq nezavisimo ot kyde e, dokato ne 
mu promenish misleneto ot /etc/apt/sources.list, /etc/apt/apt.conf ili /etc/
apt/preferences (man apt_preferences) ili ot command line options... 
Dokolkoto razbiram ti  iskash ako go ima na CD-to i na http/ftp mirrors to 
nezavisimo ot versiqta da predpo4ete da to4i ot cd, a ako go nqma na cd-to 
togava da to4i ot mirrors. Ima mnogo na4ini, no naj-lesniq e da imash 
sources.list samo s add-nati CDROM's izto4nici, drug samo s http/ftp 
izto4nici i takyf s vsi4ki CDROM i ftp/http izto4nici i prosto da gi smenqsh 
kak si iskash i apt-get update sled tova. Ako vis4ko e v edin 
sources.list ste trqbva da izberesh nqkakvo diferencirane ili razdelenie 
kogto izvikvash apt-get. Osven tova mozhesh da ne izpylnqvash apt-cdrom add, 
a prosto mount-vash CD-to v /mnt/cdrom da re4em. Sled tova dobavqsh v 
sources.list dobavqsh archiva kato localen (s unikalen path, kojto ste 
izpolzvash za da diferencirash/razgrani4ish izto4nicite s -t):
file:/mnt/cdrom/debian/  stable main 
i posle: 
apt-get install -t mnt/cdrom package ... 

mozhe da stane i po-slozhno s apt-cdrom add i net archives v sources.list, 
kato gledash s apt-cache policy package prioriteta za vseki URI i go 
promenqsh s pinning ot /etc/apt/preferences taka 4e da to4i ot CD-to dori i s 
po-malka version da e package i samo ako nqma takyf package na CD-to da to4i 
ot inet... mozhe da se polu4i taka, 4e apt da ti kazhe, 4e tazi selekciq 
koqto si izbral naprimer old version ot CD na daden paket  i new version na 
drug paket kojto go nqma na CD-to i ste go to4ish ot inet mirrors e broken... 
i syotvetno ste izplue to4no kakvo mu lipsva i da mu razreshish da izto4i 
to4nite versions.

Mozhe i apt-cache policy package, da vidish versiite, prioritetite i URI-tata 
i da mu kazhesh da proveri dali to4no dadena version na paket e installable, 
a ti ste izberesh tazi versiq koqto idva ot izto4nika CD.

# apt-get install package=version 
Naprimer: Ako ima i depends za to4no tazi version na paketa i tqh razreshavash 
na apt premoderi  ;-) 

# apt-cache policy apache
apache:
  Installed: 1.3.28-1
  Candidate: 1.3.28-1
  Version Table:
 *** 1.3.28-1 0
        500 ftp://ftp.bg.debian.org unstable/main Packages
        100 /var/lib/dpkg/status
     1.3.27.0-2 0
        500 ftp://ftp.bg.debian.org testing/main Packages
     1.3.26-0woody3 0
        500 ftp://ftp.bg.debian.org stable/main Packages
        500 http://security.debian.org stable/updates/main Packages

Neka izberesm  1.3.26-0woody3, koeto ste e i downgrade v tozi slu4aj, no nie 
si iskame to4no 1.3.26-0woody3 versiqta .... Ako poizkash samo:
# apt-get install apache=1.3.26-0woody3
apt ste poiska i syotvetnite depends da mu razreshish *izri4no* da vzeme:

# apt-get install apache=1.3.26-0woody3 apache-common=1.3.26-0woody3
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  apache apache-common libgd2-xpm php4-gd2
Suggested packages:
  libapache-mod-auth-mysql libgd-tools
The following packages will be REMOVED:
  apache-dev libapache-mod-dav libapache-mod-fastcgi libapache-mod-perl 
libapache-mod-ruby libapache-mod-ssl
  libgd2-noxpm php4 php4-apc phpsysinfo
The following NEW packages will be installed:
  libgd2-xpm
The following packages will be upgraded
  php4-gd2
The following packages will be DOWNGRADED
  apache apache-common
1 upgraded, 1 newly installed, 2 downgraded, 10 to remove and 224 not 
upgraded.
Need to get 1347kB of archives.
After unpacking 10,2MB disk space will be freed.
Do you want to continue? [Y/n] n

dori mozhesh da poso4ish i to4ni versii (package=version) za nqkoj ili 
vsi4ki ot paketite markirani za REMOVED, stoto ina4e ste gi po4isti ... 

> (stawa wapros za knoppix -2-> prehwyrlen na HDD, apt-cdrom na originalnata
> 3.01r1 debian)

btw, v knoppix 3.3 ima nov hdd installer 'knoppix-installer' kojto ima 
mode-debian i mode-knoppix, ako pri install na hdd izberesh poslednoto to 
posle kato boot-va ot hdd-to ste pravi si4ki autodetectvaniq kato na 
LiveCD-to. Ne sym go probal oste, do sega samo sa 'knx-hdinstall' sym install 
ot livecd na hdd.

-- 
pub  4096R/0E4BD0AB 2003-03-18 <keyserver.bu.edu>
1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB 

============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.