Skip to content

Commit d02f407

Browse files
committed
readme: update apt key usage, fix #552
1 parent 7e8a5e0 commit d02f407

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,19 @@ You can easily install **EigenPy** from binaries.
4242

4343
#### Add robotpkg apt repository
4444

45-
1. Add robotpkg as source repository to apt:
45+
1. Register the authentication certificate of robotpkg:
4646
```
47-
sudo sh -c "echo 'deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg' >> /etc/apt/sources.list.d/robotpkg.list"
47+
curl http://robotpkg.openrobots.org/packages/debian/robotpkg.asc | sudo tee /etc/apt/keyrings/robotpkg.asc
4848
```
49-
2. Register the authentication certificate of robotpkg:
49+
2. Add robotpkg as source repository to apt:
5050
```
51-
curl http://robotpkg.openrobots.org/packages/debian/robotpkg.key | sudo apt-key add -
51+
sudo tee /etc/apt/sources.list.d/robotpkg.list <<EOF
52+
deb [arch=amd64 signed-by=/etc/apt/keyrings/robotpkg.asc] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg
53+
EOF
5254
```
5355
3. You need to run at least one apt update to fetch the package descriptions:
5456
```bash
55-
sudo apt-get update
57+
sudo apt update
5658
```
5759

5860
#### Install EigenPy

0 commit comments

Comments
 (0)