Update README.md
Fixed formatting.
This commit is contained in:
parent
981dc3d2ff
commit
3675da2acd
84
README.md
84
README.md
@ -32,87 +32,87 @@ A unified command-line interface for managing packages across different Linux di
|
||||
|
||||
1. Clone the repository and enter the directory:
|
||||
|
||||
git clone https://git.supernets.org/e/managerofmanagers
|
||||
cd upm
|
||||
```git clone https://git.supernets.org/e/managerofmanagers```
|
||||
```cd upm```
|
||||
|
||||
2. Install dependencies:
|
||||
|
||||
go mod download
|
||||
```go mod download```
|
||||
|
||||
3. Build the binary:
|
||||
|
||||
go build -o upm
|
||||
```go build -o upm```
|
||||
|
||||
4. (Optional) Install system-wide:
|
||||
|
||||
sudo mv upm /usr/local/bin/
|
||||
```sudo mv upm /usr/local/bin/```
|
||||
|
||||
## Usage
|
||||
|
||||
### Basic Commands
|
||||
|
||||
Install packages:
|
||||
upm install nginx
|
||||
upm install nginx@1.18.0 # Install specific version
|
||||
Install packages:\
|
||||
```upm install nginx```\
|
||||
```upm install nginx@1.18.0 # Install specific version```
|
||||
|
||||
Remove packages:
|
||||
upm remove nginx
|
||||
Remove packages:\
|
||||
```upm remove nginx```
|
||||
|
||||
Search for packages:
|
||||
upm search nginx
|
||||
Search for packages:\
|
||||
```upm search nginx```
|
||||
|
||||
Update package lists:
|
||||
upm update
|
||||
Update package lists:\
|
||||
```upm update```
|
||||
|
||||
Upgrade installed packages:
|
||||
upm upgrade
|
||||
Upgrade installed packages:\
|
||||
```upm upgrade```
|
||||
|
||||
List installed packages:
|
||||
upm list
|
||||
List installed packages:\
|
||||
```upm list```
|
||||
|
||||
Show package information:
|
||||
upm info nginx
|
||||
Show package information:\
|
||||
```upm info nginx```
|
||||
|
||||
### Repository Management
|
||||
|
||||
Add a repository:
|
||||
upm repo add https://repo.example.com
|
||||
Add a repository:\
|
||||
```upm repo add https://repo.example.com```
|
||||
|
||||
Remove a repository:
|
||||
upm repo remove example-repo
|
||||
Remove a repository:\
|
||||
```upm repo remove example-repo```
|
||||
|
||||
List repositories:
|
||||
upm repo list
|
||||
List repositories:\
|
||||
```upm repo list```
|
||||
|
||||
### Maintenance
|
||||
|
||||
Clean package cache:
|
||||
upm clean
|
||||
Clean package cache:\
|
||||
```upm clean```
|
||||
|
||||
Remove unused dependencies:
|
||||
upm autoremove
|
||||
Remove unused dependencies:\
|
||||
```upm autoremove```
|
||||
|
||||
### Dependency Management
|
||||
|
||||
Check dependencies:
|
||||
upm check-deps
|
||||
Check dependencies:\
|
||||
```upm check-deps```
|
||||
|
||||
Check dependencies for specific package:
|
||||
upm check-deps nginx
|
||||
Check dependencies for specific package:\
|
||||
```upm check-deps nginx```
|
||||
|
||||
Show package dependencies:
|
||||
upm show-deps nginx
|
||||
Show package dependencies:\
|
||||
```upm show-deps nginx```
|
||||
|
||||
### Using Universal Package Managers
|
||||
|
||||
Install using snap:
|
||||
upm -u snap install firefox
|
||||
Install using snap:\
|
||||
```upm -u snap install firefox```
|
||||
|
||||
Install using flatpak:
|
||||
upm -u flatpak install org.mozilla.firefox
|
||||
Install using flatpak:\
|
||||
```upm -u flatpak install org.mozilla.firefox```
|
||||
|
||||
## Project Structure
|
||||
|
||||
```
|
||||
upm/
|
||||
├── main.go # Main application entry point
|
||||
├── pkg_manager/
|
||||
@ -120,7 +120,7 @@ upm/
|
||||
├── go.mod
|
||||
├── go.sum
|
||||
└── README.md
|
||||
|
||||
```
|
||||
## Dependencies
|
||||
|
||||
Required Go packages:
|
||||
|
Loading…
Reference in New Issue
Block a user