How to Install and Uninstall ruby-cancancan Package on Ubuntu 21.10 (Impish Indri)

Last updated: November 26,2024

1. Install "ruby-cancancan" package

Please follow the instructions below to install ruby-cancancan on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install ruby-cancancan

2. Uninstall "ruby-cancancan" package

Here is a brief guide to show you how to uninstall ruby-cancancan on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove ruby-cancancan $ sudo apt autoclean && sudo apt autoremove

3. Information about the ruby-cancancan package on Ubuntu 21.10 (Impish Indri)

Package: ruby-cancancan
Architecture: all
Version: 3.0.1+gh-1
Priority: optional
Section: universe/ruby
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Ruby Extras Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 131
Depends: ruby | ruby-interpreter
Filename: pool/universe/r/ruby-cancancan/ruby-cancancan_3.0.1+gh-1_all.deb
Size: 22508
MD5sum: 906bdae29a918c38ed8f0ecfcbd615ec
SHA1: 447326a61d96570874025d1a2f6e90dcf9caf2ea
SHA256: 1a4901979b66c9f0163303e70bf6a6716114f5b745254b9729a126db0e77cda1
SHA512: a9c94dcec325287dcb637a9d093bf80149d4c795b05c18e99c5e3edb2c705247a07b888ad01a3435a7d0feead3a5c79d34f6bf1ed4904a7ab40322d7d600f8ce
Homepage: https://github.com/CanCanCommunity/cancancan
Description-en: Authorization Gem for Ruby on Rails
CanCanCan is an authorization library for Ruby >= 2.2.0 and Ruby on Rails
>= 4.2 which restricts what resources a given user is allowed to access.
.
All permissions can be defined in one or multiple ability files and not
duplicated across controllers, views, and database queries, keeping your
permissions logic in one place for easy maintenance and testing.
.
It consists of two main parts:
1. Authorizations library that allows you to define the rules to access
different objects, and provides helpers to check for those permissions.
2. Rails helpers to simplify the code in Rails Controllers by performing the
loading and checking of permissions of models automatically and reduce
duplicated code.
Description-md5: f16cb4f6ec9db734ee868b65a166246f
Ruby-Versions: all