Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
danny50610 authored Apr 28, 2024
1 parent 3c9f628 commit 28fb6ac
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,37 @@

在專案外面
```
aptly repo create -distribution=jammy -component=main apt-repo-jammy
aptly repo create -distribution=bionic -component=main apt-repo-bionic
aptly repo create -distribution=focal -component=main apt-repo-focal
aptly repo create -distribution=jammy -component=main apt-repo-jammy
aptly repo add apt-repo-jammy xxx.deb
aptly repo add apt-repo-bionic xxx.deb
aptly repo add apt-repo-focal xxx.deb
aptly repo add apt-repo-jammy xxx.deb
aptly snapshot create apt-repo-jammy from repo apt-repo-bionic
aptly snapshot create apt-repo-bionic from repo apt-repo-bionic
aptly snapshot create apt-repo-focal from repo apt-repo-focal
aptly snapshot create apt-repo-jammy from repo apt-repo-jammy
aptly publish snapshot -architectures=amd64 -component=main -gpg-key="7D85C61502D5634F" apt-repo-jammy filesystem:apt-repo:
aptly publish snapshot -architectures=amd64 -component=main -gpg-key="7D85C61502D5634F" apt-repo-bionic filesystem:apt-repo:
aptly publish snapshot -architectures=amd64 -component=main -gpg-key="7D85C61502D5634F" apt-repo-focal filesystem:apt-repo:
aptly publish snapshot -architectures=amd64 -component=main -gpg-key="7D85C61502D5634F" apt-repo-jammy filesystem:apt-repo:
```


### Add deb file
在專案外面 (記得要換 snapshot 名稱)
```
aptly repo add apt-repo-jammy xxx.deb
aptly repo add apt-repo-bionic xxx.deb
aptly repo add apt-repo-focal xxx.deb
aptly repo add apt-repo-jammy xxx.deb
# snapshot 名稱不能重複,所以可能先用流水號
aptly snapshot create apt-repo-jammy-2 from repo apt-repo-bionic
# (snapshot 名稱不能重複,所以可能先用流水號)
aptly snapshot create apt-repo-bionic-2 from repo apt-repo-bionic
aptly snapshot create apt-repo-focal-2 from repo apt-repo-focal
aptly snapshot create apt-repo-jammy-2 from repo apt-repo-jammy
aptly publish switch jammy filesystem:apt-repo: apt-repo-jammy-2
aptly publish switch bionic filesystem:apt-repo: apt-repo-bionic-2
aptly publish switch focal filesystem:apt-repo: apt-repo-focal-2
aptly publish switch jammy filesystem:apt-repo: apt-repo-jammy-2
```

0 comments on commit 28fb6ac

Please sign in to comment.