וטנובואב "Reprepro" ילכה תועצמאב Sourceforge.net -ב "deb. תוליבח רגאמ" רוצ


Reprepro ירגאמ לש לוהינו הריציל ןטק הדוקפ תרוש ילכ אוה .deb תועצמאב תולקב ןאיבד תוליבח ירגאמ רוציל דציכ הארנ םויה .תולקב reprepro ל ותוא הלעה דציכו- Sourceforge.net הדוקפ

חתפמ רוצו Reprepro תא ןקתה :1 בלש

.האבה apt-get הדוקפה תועצמאב תושורדה תוליבחה לכ תא ןקתה ,תישאר

$ sudo apt-get install reprepro gnupg

.וז הדוקפ לחה ,ךכ םשל , gnupg תועצמאב gpg חתפמ רוציל ךילע תעכ

$ gpg --gen-key

.( ץלמומ) לדחמה תרירב תויורשפאל Enter לע ץחל טושפ ,תונעל המ לע עדוי אל התא םא ,ףקת תויהל ךירצ חתפמה ןמז המכ ,הצור התאש חתפמה גוס ומכ ,תולאש המכ ךתוא לאשי הז

.ךשמהב םתוא ךרטצנ יכ ,הלא תא רוכז ,המסיסו שמתשמ םש ךממ שקבי הזש ןבומכ

gpg (GnuPG) 1.4.14; Copyright (C) 2013 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Please select what kind of key you want:
   (1) RSA and RSA (default)
   (2) DSA and Elgamal
   (3) DSA (sign only)
   (4) RSA (sign only)
Your selection? 
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048) 
Requested keysize is 2048 bits
Please specify how long the key should be valid.
         0 = key does not expire
        = key expires in n days
      w = key expires in n weeks
      m = key expires in n months
      y = key expires in n years
Key is valid for? (0) 
Key does not expire at all
Is this correct? (y/N) Y

You need a user ID to identify your key; the software constructs the user ID
from the Real Name, Comment and Email Address in this form:
    "Heinrich Heine (Der Dichter) <[email >"

Real name: ravisaive
Email address: [email 
Comment: tecmint
You selected this USER-ID:
    "Ravi Saive (tecmint) <[email >"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key.

We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.

+++++
gpg: key 2EB446DD marked as ultimately trusted
public and secret key created and signed.

gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
pub   2048R/2EB446DD 2014-06-24
      Key fingerprint = D222 B1C9 342E 5911 02B1  9147 3BD6 7918 2EB4 46DD
uid                  Ravi Saive (tecmint) <[email >
sub   2048R/7EF2F750 2014-06-24

.שרוש תואשרהכ וז הדוקפ לעפה ,ןכ םא קודבל ידכ ,רצוויי ךלש חתפמה תעכ

$ sudo gpg --list-keys
/home/ravisaive/.gnupg/pubring.gpg
----------------------------------
pub   2048R/2EB446DD 2014-06-24
uid                  ravisaive (tecmint) <[email >
sub   2048R/7EF2F750 2014-06-24

אוציי חתפמו תוליבח רגאמ רוצ :2 בלש

.תויקית רוצינ ואוב זא ,/var/www/apt הירפסב היהי ונלש רגאמה ,תויקית המכ רוציל םכילע תישאר ,רגאמה תריציל הדובעב תעכ ליחתנ

$ sudo su
# cd /var/www
# mkdir apt
# mkdir -p ./apt/incoming 
# mkdir -p ./apt/conf
# mkdir -p ./apt/key

.ץורל ,רגאמה תייקיתל תרציש חתפמה תא אצייל ךילע תעכ

# gpg --armor --export username [email  >> /var/www/apt/key/deb.gpg.key

.ךלש ל"אודב [ןגומ ל"אוד] ו ,הלעמלש בלשב תנזהש שמתשמה םשב שמתשמה םש תא ףלחה :הרעה

./var/www/apt/conf ךותב " תוצפה "\םשב ץבוק רוציל ונילע

# touch /var/www/apt/conf/distributions

.ץבוקה תא רומשו תוצפהה ץבוקל תואבה תורושה תא ףסוה

Origin: (yourname)
Label: (name of repository)
Suite: (stable or unstable)
Codename: (the codename for the distribution you are using, like trusty)
Version: (the version for the distribution you are using, like 14.04)
Architectures: (the repository packages  architecture, like i386 or amd64)
Components: (main restricted universe multiverse)
Description: (Some information about the repository)
SignWith: yes

.הלא תודוקפ ליעפהל ,ךכ םשל ,רגאמה ץע תא רוציל ונילע היהי ,ןכמ רחאל

# reprepro --ask-passphrase -Vb /var/www/apt export
Created directory "/var/www/apt/db"
Exporting Trusty...
Created directory "/var/www/apt/dists"
Created directory "/var/www/apt/dists/Trusty"
Created directory "/var/www/apt/dists/Trusty/universe"
Created directory "/var/www/apt/dists/Trusty/universe/binary-i386"
FF5097B479C8220C ravisaive (tecmint) <[email > needs a passphrase
Please enter passphrase:
Successfully created '/var/www/apt/dists/Trusty/Release.gpg.new'
FF5097B479C8220C ravisaive (tecmint) <[email > needs a passphrase
Please enter passphrase:
Successfully created '/var/www/apt/dists/Trusty/InRelease.new'

הנורחאל רצונש רגאמל תוליבח ףסוה :3 בלש

.תוליבח ףיסוהל הצור התאש םעפ לכב תאז תושעל ךילע ,/var/www/apt היירפסל רובע .רגאמל ופיסותש .d ה תוליבח תא וניכה תעכ

# cd /var/www/apt
# reprepro --ask-passphrase -Vb . includedeb Trusty /home/ravisaive/packages.deb

.המסיסה יוטיב תא ןיזהל שקבתת ,הליבחל ביתנב /home/username/package.deb תא ףלחהו ,תוצפהה ץבוקב רגאמל תנזהש דוקה םשב ןימא תא ףלחה :הרעה

/home/ravisaive/packages.deb : component guessed as 'universe'
Created directory "./pool"
Created directory "./pool/universe"
Created directory "./pool/universe/o"
Created directory "./pool/universe/o/ojuba-personal-lock"
Exporting indices...
FF5097B479C8220C ravisaive (tecmint) <[email > needs a passphrase
Please enter passphrase:
Successfully created './dists/Trusty/Release.gpg.new'
FF5097B479C8220C ravisaive (tecmint) <[email > needs a passphrase
Please enter passphrase:
Successfully created './dists/Trusty/InRelease.new'

.התוא ריסהל ידכ רגאמל תפסוותמ ךלש הליבחה

# reprepro --ask-passphrase -Vb /var/www/apt remove trusty  package.deb

.רגאמה דוק םשו ךלש הליבחה םש םע הדוקפה תא תונשל ךילע ,ןבומכו

Sourceforge.net -ל רגאמ הלעה :4 בלש

.הדוקפ rsync תועצמאב תאז השענ ונא .םיצבקה תא תולעהל הצרת הילאש היקיתה איה testrepository -ו ,(תרתוכה אלו ,URL אל ,UNIX םש) ךלש טקיורפה םש אוה myfoo רשאכ http:// sourceforge .net/pro

# rsync -avP -e ssh /var/www/apt/ [email :/home/frs/project/myfoo/testrepository/

.םיצבקה תא ןסחאל ךנוצרב הבש היקיתב ךלש הגוצתה ןחבמבו ךלש UNIX טקיורפב myfoo -ו sourceforge.net -ב ךלש שמתשמה םשב שמתשמה םש תא ףלחה :הרעה

.sourceforge.net -מ חתפמה אוביי היהנ ןכל ,םהלש תוכרעמל ותוא ףיסוהל ולכוי אל ךלש רגאמב םישמתשמהו ימוקמ ביתנ הז לבא , /var/www/apt/key/deb.gpg.key ב היהי אוה ,רגאמה חתפמ ת

$ sudo su
# wget -O - http://sourceforge.net/projects/myfoo/testrepository/apt/key/deb.gpg.key | apt-key add -

.וז הרוש ףיסוהלו /etc/apt/sources.list תא חותפל ,ךלש תכרעמל תעכ תולקב רגאמה תא ףיסוהל לכות

deb http://sourceforge.net/projects/myfoo/testrepository/apt/key/deb.gpg.key trusty main

.תוצפהה ץבוקל תפסוהש רגאמ יביכר םע ירקיעו ,םיצבקה תא תלעה הילאש היקיתה םע testrepository ,ךלש רגאמה לש דוקה דוק םע ןמיהמ ,ךלש UNIX-Name טקיורפב myfoo תא ףלחה :הרעה

.םירגאמה תמישר תא ןכדעל ידכ אבה לעפה ,ןכמ רחאל

$ sudo apt-get update

בוט לזמ! ךכב הצרת םא ונממ תולקב תוליבח ןיקתהל לכות תעכ !ליעפ ךלש רגאמה.


כל הזכויות שמורות. © Linux-Console.net • 2019-2024