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