Apt-get
Adresár je presný,nakoľko sudo dpkg -i funguje na tej istej adrese ale potrebujem aby mi stiahlo aj závislosti.trizzo napísal:pozeral si presne do adresara : /home/... atd?? priamo v roote??
aku mas distribuciu..Debian alebo nejaky deb-ovsky klon?
Je tu ubuntu.
- Prílohy
-
- Screenshot-1.png (206.97 KiB) 1087 zobrazení
-
mejlo
Expert
- Príspevky: 149
- Registrovaný: 03 jún 2005, 22:38
- Bydlisko: Bratislava
- Kontaktovať používateľa:
How to use APT locally
Dufam ze toto ti pomoze:
Sometimes you have lots of packages .deb that you would like to use APT to install so that the dependencies would be automatically solved.
To do that create a directory and put the .debs you want to index in it . For example:
# mkdir /root/debs
You may modify the definitions set on the package's control file directly for your repository using an override file. Inside this file you may want to define some options to override the ones that come with the package. It looks like follows:
package priority section
package is the name of the package, priority is low, medium or high and section is the section to which it belongs. The file name does not matter, you'll have to pass it as an argument for dpkg-scanpackages later. If you do not want to write an override file, just use /dev/null. when calling dpkg-scanpackages.
Still in the /root directory do:
# dpkg-scanpackages debs file | gzip > debs/Packages.gz
In the above line, file is the override file, the command generates a file Packages.gz that contains various information about the packages, which are used by APT. To use the packages, finally, add:
deb file:/root debs/
After that just use the APT commands as usual. You may also generate a sources repository. To do that use the same procedure, but remember that you need to have the files .orig.tar.gz, .dsc and .diff.gz in the directory and you have to use Sources.gz instead of Packages.gz. The program used is also different. It is dpkg-scansources. The command line will look like this:
# dpkg-scansources debs | gzip > debs/Sources.gz
Notice that dpkg-scansources doesn't need an override file. The sources.list's line is:
deb-src file:/root debs/
Re: Apt-get
Alebo si ho nakompiluj zo source. Návod máš v tom balíku, ktorý stiahneš.warezman napísal:Keď idem instalovať krusadera takto:
sudo apt-get install /home/lama/Desktop/krusader.deb
tak mi vypíše súbor nenájdený.Neviete poradiť?
-
m3thod-man
Star
- Príspevky: 561
- Registrovaný: 23 sep 2005, 15:17
- Kontaktovať používateľa:
-
/home/sudruh
Light Expert
- Príspevky: 59
- Registrovaný: 18 mar 2006, 12:56
- Bydlisko: /home sweet /home
najskor som myslel ze ci ti neblbne apt-get, ked ze "file not found", ale ono ma pravdu - ty mu sice napises cestu, ale apt-get je apt-get a hlada si cestu k suborom (aj lokalnym) cez svoje sources (zdroje) ktore su konfigurovatelne v /etc/apt/sources.list
Lenze: zdroj = archiv balickov aj s indexami a podobnymi chobotinami, ktore by si asi nechcel vyrabat kvoli instalacii jedneho balika.
Cize: ak tvoj apt-get uz NEPOZNA dependencie pre toho krusadera, tak to lokalne na svojom kompe len tazko vyriesis, bolo by to blaznive
man apt-get
man sources.list
Podla mna zakladna filozofia celeho Debian balickoveho systemu je ulahcit pracu - vsetko robim cez apt-get. Ak to tam nie je, tak KOMPILUJEM. Nikdy sa nepokusam radit programu APT-GET co ma robit, nic mu nenanucujem - vacsinou to zle dopadne, mozu sa ti znicit dependencie v systeme a z toho je len galiba.
Nikdy som nepouzival Gentoo, (som Debian od malicka) ale mysim, ze urcite zasady tam tiez musia platit rovnako
Lenze: zdroj = archiv balickov aj s indexami a podobnymi chobotinami, ktore by si asi nechcel vyrabat kvoli instalacii jedneho balika.
Cize: ak tvoj apt-get uz NEPOZNA dependencie pre toho krusadera, tak to lokalne na svojom kompe len tazko vyriesis, bolo by to blaznive
man apt-get
man sources.list
Podla mna zakladna filozofia celeho Debian balickoveho systemu je ulahcit pracu - vsetko robim cez apt-get. Ak to tam nie je, tak KOMPILUJEM. Nikdy sa nepokusam radit programu APT-GET co ma robit, nic mu nenanucujem - vacsinou to zle dopadne, mozu sa ti znicit dependencie v systeme a z toho je len galiba.
Nikdy som nepouzival Gentoo, (som Debian od malicka) ale mysim, ze urcite zasady tam tiez musia platit rovnako
-
/home/sudruh
Light Expert
- Príspevky: 59
- Registrovaný: 18 mar 2006, 12:56
- Bydlisko: /home sweet /home
Presne tak som to myslel: nevymyslat ziadne komplikovanosti, bud to ma APT v repozitoriu balickov, alebo kompilovat.q-parser napísal:apt-cache update //update zoznamu balickov
// apt-cache upgrade - prikaz na upgrade vsetkych balickov aktualne nainstalovanych
apt-cache search krusader //hlada balicek
apt-get install krusader //instalacia
Inak naviem ako tam u vas, ale u mna v Debiane je to vsetko cez prikaz
apt-get, cize:
apt-get update
apt-get upgrade // vsetky baliky
apt-get install ....