---
# System prepended metadata

title: 註冊redhat8.4
tags: [Other]

---

# 註冊redhat8.4 
[toc]
## **註冊指令**
`subscription-manager register --username=mariowang1234  --password=xu0650@yvmp4  --auto-attach`
//不行的話就用這個方式
`subscription-manager register`
`mariowang1234`
`xu0650@yvmp4`
*Redhat環境若無yum，需使用 dnf
> {%hackmd BJrTq20hE %}
## **其他相關指令**
若註冊失敗 or 快照還原需重新註冊
1. 註冊失敗，自動重新匹配
```
subscription-manager attach --auto
```
2. 重新註冊需清除
```
subscription-manager remove --all
subscription-manager unregister
subscription-manager clean
```
3. 重新註冊(refresh)
```
subscription-manager refresh
subscription-manager attach --auto
subscription-manager status
```

###### tags: `Other`
Edit by Mario